Commit c8a5e8a8 authored by Peter Ross's avatar Peter Ross Committed by Michael Niedermayer

EA cdata demuxer: set codec->sample_fmt

This is required by has_codec_parameters in libavformat/utils.c
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b678d6db
......@@ -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 = AV_SAMPLE_FMT_S16;
av_set_pts_info(st, 64, 1, sample_rate);
cdata->audio_pts = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment