[FFmpeg-cvslog] r24493 - trunk/libavcodec/adpcm.c

Stefano Sabatini stefano.sabatini-lala
Sun Jul 25 16:38:45 CEST 2010


On date Sunday 2010-07-25 16:33:16 +0200, cehoyos wrote:
> Author: cehoyos
> Date: Sun Jul 25 16:33:16 2010
> New Revision: 24493
> 
> Log:
> Only 4-bit ADPCM IMA WAV files are supported.
> 
> Modified:
>    trunk/libavcodec/adpcm.c
> 
> Modified: trunk/libavcodec/adpcm.c
> ==============================================================================
> --- trunk/libavcodec/adpcm.c	Sun Jul 25 12:42:00 2010	(r24492)
> +++ trunk/libavcodec/adpcm.c	Sun Jul 25 16:33:16 2010	(r24493)
> @@ -721,6 +721,12 @@ static av_cold int adpcm_decode_init(AVC
>      case CODEC_ID_ADPCM_CT:
>          c->status[0].step = c->status[1].step = 511;
>          break;
> +    case CODEC_ID_ADPCM_IMA_WAV:
> +        if (avctx->bits_per_coded_sample != 4) {
> +            av_log(avctx, AV_LOG_ERROR, "Only 4-bit ADPCM IMA WAV files are supported\n");
> +            return -1;

AVERROR_PATCHWELCOME?

Regards.



More information about the ffmpeg-cvslog mailing list