From b06c8bce02b15115a4789252365df2dda0c4713c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 9 Dec 2013 11:54:46 +0100 Subject: [PATCH] mpegvideo: remove an unneeded call to avcodec_get_frame_defaults(). ff_mpeg_unref_picture() already resets the frame. --- libavcodec/mpegvideo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 4abf2234d7..55fd935b2f 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1396,7 +1396,6 @@ int ff_find_unused_picture(MpegEncContext *s, int shared) s->picture[ret].needs_realloc = 0; ff_free_picture_tables(&s->picture[ret]); ff_mpeg_unref_picture(s, &s->picture[ret]); - avcodec_get_frame_defaults(&s->picture[ret].f); } } return ret;