diff options
author | Robert Swain <robert.swain@gmail.com> | 2009-03-24 02:26:10 +0000 |
---|---|---|
committer | Robert Swain <robert.swain@gmail.com> | 2009-03-24 02:26:10 +0000 |
commit | 29e455081fa8cd6d97b194c8dff33cc6473e33d9 (patch) | |
tree | e484e9a66755dbc31cdac68c8687d1c9ba319972 /libavcodec | |
parent | cd98a0302498521917b52386cc60cdaaf610f558 (diff) | |
download | ffmpeg-29e455081fa8cd6d97b194c8dff33cc6473e33d9.tar.gz |
Update apiexample.c to use the newer avcodec_decode_audio2() API. This also
fixes compilation.
Originally committed as revision 18176 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/apiexample.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c index 14fee3bd3a..7f682cde30 100644 --- 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"); |