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>
Thu, 23 May 2013 01:29:47 +0000 (03:29 +0200)
commitc54a1565f512858ccfa70392f40f11c098bc1b63
tree2f1ac2054d7f81994ba212017c60abb11261fc15
parent1f02927d288cd2ef3ac8ce470c5901032d6faf34
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>
libavformat/utils.c