[Ffmpeg-cvslog] r7792 - trunk/ffmpeg.c
michael
subversion
Thu Feb 1 01:34:10 CET 2007
Author: michael
Date: Thu Feb 1 01:34:09 2007
New Revision: 7792
Modified:
trunk/ffmpeg.c
Log:
use avcodec_decode_audio2()
Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c (original)
+++ trunk/ffmpeg.c Thu Feb 1 01:34:09 2007
@@ -1066,9 +1066,10 @@
case CODEC_TYPE_AUDIO:{
if(pkt)
samples= av_fast_realloc(samples, &samples_size, FFMAX(pkt->size, AVCODEC_MAX_AUDIO_FRAME_SIZE));
+ data_size= samples_size;
/* XXX: could avoid copy if PCM 16 bits with same
endianness as CPU */
- ret = avcodec_decode_audio(ist->st->codec, samples, &data_size,
+ ret = avcodec_decode_audio2(ist->st->codec, samples, &data_size,
ptr, len);
if (ret < 0)
goto fail_decode;
More information about the ffmpeg-cvslog
mailing list