[Ffmpeg-devel] [PATCH] avctx->frame_size/channels/sample_rate fix for AMR

Michael Niedermayer michaelni
Thu Sep 14 16:27:23 CEST 2006


Hi

On Thu, Sep 14, 2006 at 03:37:53PM +0300, Andrew Voznytsa wrote:
> Hi,
> 
> I think it is obvious.
> 
> -- 
> Best regards,
> Andrew Voznytsa
> 

> Index: libavcodec/amr.c
> ===================================================================
> --- 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?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list