Browse Source

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>
tags/n0.8
Peter Ross Michael Niedermayer 14 years ago
parent
commit
c8a5e8a894
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/eacdata.c

+ 1
- 0
libavformat/eacdata.c View File

@@ -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…
Cancel
Save