avformat/utils: Keep internal and external av_read_frame() packets in sync.
authorDale Curtis <dalecurtis@chromium.org>
Wed, 22 May 2013 22:17:08 +0000 (15:17 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Jul 2013 16:46:35 +0000 (18:46 +0200)
commitd8538a10024cc33075a8d5b121336ed12ba545ad
treeee580d494015b1e93660c061c71daeb004273d61
parent6cb33e076323c684e91abe71d9b3fabe6830c75d
avformat/utils: Keep internal and external av_read_frame() packets in sync.

Otherwise, during error conditions, the caller will be left with
dangling pointers to a destructed packet => boom.

BUG=242786
TEST=ffmpeg_regression_tests

Commit slightly simplified by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c54a1565f512858ccfa70392f40f11c098bc1b63)

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