OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
281a40e
)
api-example: remove an unneeded call to avcodec_get_frame_defaults().
author
Anton Khirnov
<anton@khirnov.net>
Mon, 9 Dec 2013 10:55:57 +0000
(11:55 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 11 Dec 2013 19:39:55 +0000
(20:39 +0100)
avcodec_decode_audio4() resets the frame itself.
libavcodec/api-example.c
patch
|
blob
|
history
diff --git
a/libavcodec/api-example.c
b/libavcodec/api-example.c
index
11a4412
..
6abbddc
100644
(file)
--- 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) {