diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 00:19:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-12 00:19:53 +0100 |
commit | 525a7d9b78683ce0e44a97283eb7ed23d36ae688 (patch) | |
tree | 728318757d8db1a12a7d890bd8e982e0b23a7798 | |
parent | 0506cc2cc3e95b280609fe4e4c3b96e839e37d57 (diff) | |
parent | 48d17ee6dc2b2a552f645484f200c2946bf24607 (diff) | |
download | ffmpeg-525a7d9b78683ce0e44a97283eb7ed23d36ae688.tar.gz |
Merge commit '48d17ee6dc2b2a552f645484f200c2946bf24607'
* commit '48d17ee6dc2b2a552f645484f200c2946bf24607':
api-example: remove an unneeded call to avcodec_get_frame_defaults().
Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | doc/examples/decoding_encoding.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c index 9b20c020a5..8bfc30f43a 100644 --- a/doc/examples/decoding_encoding.c +++ b/doc/examples/decoding_encoding.c @@ -291,8 +291,7 @@ static void audio_decode_example(const char *outfilename, const char *filename) fprintf(stderr, "Could not allocate audio frame\n"); exit(1); } - } else - avcodec_get_frame_defaults(decoded_frame); + } len = avcodec_decode_audio4(c, decoded_frame, &got_frame, &avpkt); if (len < 0) { |