[Ffmpeg-devel] [PATCH] avctx->frame_size/channels/sample_rate fix for AMR
Benjamin Larsson
banan
Thu Sep 14 16:31:33 CEST 2006
Michael Niedermayer skrev:
> [...]
>> ===================================================================
>> --- libavcodec/amr.c (revision 6250)
>> +++ libavcodec/amr.c (working copy)
>> @@ -143,6 +143,11 @@
>> av_log(avctx, AV_LOG_ERROR, "Speech_Decode_Frame_init error\n");
>> return -1;
>> }
>> +
>> + avctx->sample_rate = 8000;
>>
>
> wont that break amr stored in containers with a sample_rate different from
> that?
>
AMR NB can only be used with a 8khz sample rate. If the container uses
some other value the container is wrong.
MvH
Benjamin Larsson
More information about the ffmpeg-devel
mailing list