diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-05-25 20:29:17 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-05-25 20:30:50 +0200 |
commit | 5f44f47b7256659b45ae5e3edd558521fbf962e8 (patch) | |
tree | 88e9230d070ac177730aabfbb7cd34ecc681bb79 /libavcodec/mpegvideo.c | |
parent | 5292dac34cfa9a26b47bb0b78c246e12e873b313 (diff) | |
download | ffmpeg-5f44f47b7256659b45ae5e3edd558521fbf962e8.tar.gz |
mpegvideo_enc: do not unreference frames before the code is done with them
Fixes Ticket2592
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index a713099ae9..e76fc34c99 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1714,7 +1714,6 @@ int ff_MPV_frame_start(MpegEncContext *s, AVCodecContext *avctx) * frame has been coded/decoded. */ void ff_MPV_frame_end(MpegEncContext *s) { - int i; /* redraw edges for the frame if decoding didn't complete */ // just to make sure that all data is rendered. if (CONFIG_MPEG_XVMC_DECODER && s->avctx->xvmc_acceleration) { @@ -1763,13 +1762,6 @@ void ff_MPV_frame_end(MpegEncContext *s) assert(i < MAX_PICTURE_COUNT); #endif - if (s->encoding) { - /* release non-reference frames */ - for (i = 0; i < MAX_PICTURE_COUNT; i++) { - if (!s->picture[i].reference) - ff_mpeg_unref_picture(s, &s->picture[i]); - } - } // clear copies, to avoid confusion #if 0 memset(&s->last_picture, 0, sizeof(Picture)); |