lavf: Reset the entry count and allocation size variables on av_reallocp failures
authorMartin Storsjö <martin@martin.st>
Thu, 26 Sep 2013 13:37:02 +0000 (16:37 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 26 Sep 2013 20:14:03 +0000 (23:14 +0300)
commitd872fb0f7ff2ff0ba87f5ccf6a1a55ca2be472c9
tree92ef865da60624c41be1e58c505c95508662ad7d
parent06ebc0bf9a6401733a4ce1310325de19f631819a
lavf: Reset the entry count and allocation size variables on av_reallocp failures

When av_reallocp fails, the associated variables that keep track of
the number of elements in the array (and in some cases, the
separate number of allocated elements) need to be reset.

Not all of these might technically be needed, but it's better to
reset them if in doubt, to make sure variables don't end up
conflicting.

Signed-off-by: Martin Storsjö <martin@martin.st>
13 files changed:
libavformat/avidec.c
libavformat/avienc.c
libavformat/aviobuf.c
libavformat/mmst.c
libavformat/mov.c
libavformat/oggparsetheora.c
libavformat/oggparsevorbis.c
libavformat/rdt.c
libavformat/rtmphttp.c
libavformat/rtmpproto.c
libavformat/rtpdec_qt.c
libavformat/smacker.c
libavformat/smoothstreamingenc.c