[FFmpeg-devel] [PATCH 2/4] EA cdata demuxer: set codec->sample_fmt

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Apr 23 16:06:57 CEST 2011


On date Saturday 2011-04-23 22:08:58 +1000, Peter Ross encoded:
> This is required by has_codec_parameters in libavformat/utils.c
> ---
>  libavformat/eacdata.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
> index 7b109ff..ce7a69c 100644
> --- a/libavformat/eacdata.c
> +++ b/libavformat/eacdata.c
> @@ -72,6 +72,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
>      st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS;
>      st->codec->channels = cdata->channels;
>      st->codec->sample_rate = sample_rate;

> +    st->codec->sample_fmt = SAMPLE_FMT_S16;

AV_SAMPLE_FMT_S16
-- 
FFmpeg = Foolish and Fabulous MultiPurpose Elitarian God


More information about the ffmpeg-devel mailing list