[FFmpeg-cvslog] mpegvideo: remove an unneeded call to avcodec_get_frame_defaults().

Anton Khirnov git at videolan.org
Thu Dec 12 00:08:50 CET 2013


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Dec  9 11:54:46 2013 +0100| [b06c8bce02b15115a4789252365df2dda0c4713c] | committer: Anton Khirnov

mpegvideo: remove an unneeded call to avcodec_get_frame_defaults().

ff_mpeg_unref_picture() already resets the frame.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b06c8bce02b15115a4789252365df2dda0c4713c
---

 libavcodec/mpegvideo.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 4abf223..55fd935 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;



More information about the ffmpeg-cvslog mailing list