From: Anton Khirnov Date: Mon, 9 Dec 2013 10:55:57 +0000 (+0100) Subject: api-example: remove an unneeded call to avcodec_get_frame_defaults(). X-Git-Tag: android-x86-6.0-r1~10^2~2529 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=48d17ee6dc2b2a552f645484f200c2946bf24607;p=android-x86%2Fexternal-ffmpeg.git api-example: remove an unneeded call to avcodec_get_frame_defaults(). avcodec_decode_audio4() resets the frame itself. --- diff --git a/libavcodec/api-example.c b/libavcodec/api-example.c index 11a4412abb..6abbddc7a7 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) {