This is required by has_codec_parameters in libavformat/utils.c
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
| ... | ... |
@@ -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; |