[FFmpeg-devel] [PATCH] fix clicks in ADPCM IMA AMV decoder

Vitor Sessak vitor1001
Wed Oct 3 18:25:17 CEST 2007


Hi

Vladimir Voroshilov wrote:
> Hi, All
> 
> Attached simle patches fixes clicks in audio when playing AMV files.

Cool. Is it still not loud enough?

> 
> Index: libavcodec/adpcm.c
> ===================================================================
> --- libavcodec/adpcm.c	(revision 10652)
> +++ libavcodec/adpcm.c	(working copy)
> @@ -1184,7 +1184,7 @@
>          break;
>      case CODEC_ID_ADPCM_IMA_AMV:
>      case CODEC_ID_ADPCM_IMA_SMJPEG:
> -        c->status[0].predictor = *src;
> +        c->status[0].predictor = (int16_t)AV_RL16(src);
>          src += 2;

c->status[0].predictor = bytestream_get_le16(&src);

-Vitor




More information about the ffmpeg-devel mailing list