OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd98a03
)
Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
author
Robert Swain
<robert.swain@gmail.com>
Tue, 24 Mar 2009 02:26:10 +0000
(
02:26
+0000)
committer
Robert Swain
<robert.swain@gmail.com>
Tue, 24 Mar 2009 02:26:10 +0000
(
02:26
+0000)
fixes compilation.
Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/apiexample.c
patch
|
blob
|
history
diff --git
a/libavcodec/apiexample.c
b/libavcodec/apiexample.c
index
14fee3b
..
7f682cd
100644
(file)
--- a/
libavcodec/apiexample.c
+++ b/
libavcodec/apiexample.c
@@
-159,7
+159,8
@@
void audio_decode_example(const char *outfilename, const char *filename)
inbuf_ptr = inbuf;
while (size > 0) {
- len = avcodec_decode_audio(c, (short *)outbuf, &out_size,
+ out_size = AVCODEC_MAX_AUDIO_FRAME_SIZE;
+ len = avcodec_decode_audio2(c, (short *)outbuf, &out_size,
inbuf_ptr, size);
if (len < 0) {
fprintf(stderr, "Error while decoding\n");