Browse code

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>

Peter Ross authored on 2011/04/24 08:41:51
Showing 1 changed files
... ...
@@ -72,6 +72,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap)
72 72
     st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS;
73 73
     st->codec->channels = cdata->channels;
74 74
     st->codec->sample_rate = sample_rate;
75
+    st->codec->sample_fmt = AV_SAMPLE_FMT_S16;
75 76
     av_set_pts_info(st, 64, 1, sample_rate);
76 77
 
77 78
     cdata->audio_pts = 0;