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

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


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Dec  9 11:55:57 2013 +0100| [281a40e18f923510f2067d05c5b0cf08cc49dfee] | committer: Anton Khirnov

lavf: remove an unneeded call to avcodec_get_frame_defaults().

avcodec_decode_*() resets the frame itself.

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

 libavformat/utils.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 36770d9..0b715e4 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -1973,7 +1973,6 @@ static int try_decode_frame(AVStream *st, AVPacket *avpkt, AVDictionary **option
            !has_decode_delay_been_guessed(st) ||
            (!st->codec_info_nb_frames && st->codec->codec->capabilities & CODEC_CAP_CHANNEL_CONF))) {
         got_picture = 0;
-        avcodec_get_frame_defaults(frame);
         switch(st->codec->codec_type) {
         case AVMEDIA_TYPE_VIDEO:
             ret = avcodec_decode_video2(st->codec, frame,



More information about the ffmpeg-cvslog mailing list