avcodec/parser: reset indexes on realloc failure
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Sep 2013 19:03:48 +0000 (21:03 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Sep 2013 21:25:00 +0000 (23:25 +0200)
commiteec833b10ddaf656d7840208c9fbe3458c8c8c3d
tree312755b4085cfb2256be51793bcb0abc42ef14b1
parent9b0736c08ac59ae5da598ef32e9165ddf5c3f645
avcodec/parser: reset indexes on realloc failure

Fixes Ticket2982

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit f31011e9abfb2ae75bb32bc44e2c34194c8dc40a)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/parser.c