[FFmpeg-devel] [PATCH]Support alaw in imkh files

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Apr 2 11:47:08 CEST 2015


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
> index a0b5738..2ade9d4 100644
> --- a/libavformat/mpeg.c
> +++ b/libavformat/mpeg.c
>  <at>  <at>  -547,6 +547,8  <at>  <at>  redo:
>              codec_id = AV_CODEC_ID_ADPCM_ADX;
>              // Auto-detect AC-3
>              request_probe = 50;
> +        } else if (m->imkh_cctv && startcode == 0x1c0) {
> +            codec_id = AV_CODEC_ID_PCM_ALAW;

Maybe with "request_probe=50;" - the manual of one 
of the camera claims that MP2 is a possible audio 
codec.

Carl Eugen



More information about the ffmpeg-devel mailing list