mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 10:22:10 +00:00
EA cdata demuxer: set codec->sample_fmt
This is required by has_codec_parameters in libavformat/utils.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
b678d6db95
commit
c8a5e8a894
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user