[FFmpeg-devel] [PATCH 2/4] avformat: add genh demuxer

Carl Eugen Hoyos cehoyos at ag.or.at
Wed Oct 14 23:56:22 CEST 2015


Hi!

Paul B Mahol <onemda <at> gmail.com> writes:

> +   case  1:
> +   case 11: st->codec->bits_per_coded_sample = 4;
> +            st->codec->codec_id = AV_CODEC_ID_ADPCM_IMA_WAV;

> +   case  3: st->codec->codec_id = st->codec->block_align > 0 ?
> +                                  AV_CODEC_ID_PCM_S16BE_PLANAR :
> +                                  AV_CODEC_ID_PCM_S16BE;

> +   case  4: st->codec->codec_id = st->codec->block_align > 0 ?
> +                                  AV_CODEC_ID_PCM_S16LE_PLANAR :
> +                                  AV_CODEC_ID_PCM_S16LE;

> +   case  5: st->codec->codec_id = st->codec->block_align > 0 ?
> +                                  AV_CODEC_ID_PCM_S8_PLANAR :
> +                                  AV_CODEC_ID_PCM_S8;

> +   case 12: st->codec->codec_id = AV_CODEC_ID_ADPCM_THP;

> +   case 13: st->codec->codec_id = AV_CODEC_ID_PCM_U8;

I wonder if you shouldn't copy all codecs 
from the white page (or xbmc code) no matter 
if tested or not.

There is for example a genh.c file in 
xbmc/cores/paplayer/vgmstream/src/meta (found with Google).

Carl Eugen



More information about the ffmpeg-devel mailing list