Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-12-09 14:55:57 +0400
committerAnton Khirnov <anton@khirnov.net>2013-12-11 23:39:55 +0400
commit48d17ee6dc2b2a552f645484f200c2946bf24607 (patch)
treeb8f9ccffaae5f98bd63670b5b3c95e52335701b0 /libavcodec/api-example.c
parent281a40e18f923510f2067d05c5b0cf08cc49dfee (diff)
api-example: remove an unneeded call to avcodec_get_frame_defaults().
avcodec_decode_audio4() resets the frame itself.
Diffstat (limited to 'libavcodec/api-example.c')
-rw-r--r--libavcodec/api-example.c3
1 files changed, 1 insertions, 2 deletions
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) {