On 07/11/15 00:35, Vittorio Giovara wrote:
> From: Carl Eugen Hoyos <[email protected]>
> 
> Bug-id: ticket #1973
> ---
>  libavformat/aiff.h    | 2 +-
>  libavformat/aiffdec.c | 2 ++
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/aiff.h b/libavformat/aiff.h
> index 5b7db26..8a6f57e 100644
> --- a/libavformat/aiff.h
> +++ b/libavformat/aiff.h
> @@ -43,7 +43,7 @@ static const AVCodecTag ff_codec_aiff_tags[] = {
>      { AV_CODEC_ID_MACE6,        MKTAG('M','A','C','6') },
>      { AV_CODEC_ID_GSM,          MKTAG('G','S','M',' ') },
>      { AV_CODEC_ID_ADPCM_G722,   MKTAG('G','7','2','2') },
> -    { AV_CODEC_ID_ADPCM_G726,   MKTAG('G','7','2','6') },
> +    { AV_CODEC_ID_ADPCM_G726LE, MKTAG('G','7','2','6') },
>      { AV_CODEC_ID_PCM_S16BE,    MKTAG('t','w','o','s') },
>      { AV_CODEC_ID_PCM_S16LE,    MKTAG('s','o','w','t') },
>      { AV_CODEC_ID_ADPCM_IMA_QT, MKTAG('i','m','a','4') },
> diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
> index f5d8f57..adfd9c1 100644
> --- a/libavformat/aiffdec.c
> +++ b/libavformat/aiffdec.c
> @@ -136,6 +136,8 @@ static unsigned int get_aiff_header(AVFormatContext *s, 
> int size,
>          case AV_CODEC_ID_MACE3:
>              codec->block_align = 2*codec->channels;
>              break;
> +        case AV_CODEC_ID_ADPCM_G726LE:
> +            codec->bits_per_coded_sample = 5;
>          case AV_CODEC_ID_ADPCM_G722:
>          case AV_CODEC_ID_MACE6:
>          case AV_CODEC_ID_SDX2_DPCM:

Does it build?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to