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

Anton Khirnov git at videolan.org
Thu Dec 12 00:25:47 CET 2013


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

api-example: remove an unneeded call to avcodec_get_frame_defaults().

avcodec_decode_audio4() resets the frame itself.

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

 libavcodec/api-example.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c
index 11a4412..6abbddc 100644
--- a/libavcodec/api-example.c
+++ b/libavcodec/api-example.c
@@ -272,8 +272,7 @@ static void audio_decode_example(const char *outfilename, const char *filename)
                 fprintf(stderr, "out of memory\n");
                 exit(1);
             }
-        } else
-            avcodec_get_frame_defaults(decoded_frame);
+        }
 
         len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt);
         if (len < 0) {



More information about the ffmpeg-cvslog mailing list