Commit f4b4a842 authored by superdump's avatar superdump

Update apiexample.c to use the newer avcodec_decode_audio2() API. This also

fixes compilation.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18176 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 2830606b
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment