This is required by has_codec_parameters in libavformat/utils.c
Showing the changes to libavformat/eacdata.c (1 of 1 file). Show all
Unified · Split
| @@ -72,6 +72,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) · 71 unmodified lines | |||
| 72 | st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS; | 72 | st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS; |
| 73 | st->codec->channels = cdata->channels; | 73 | st->codec->channels = cdata->channels; |
| 74 | st->codec->sample_rate = sample_rate; | 74 | st->codec->sample_rate = sample_rate; |
| 75 | st->codec->sample_fmt = AV_SAMPLE_FMT_S16; | ||
| 75 | av_set_pts_info(st, 64, 1, sample_rate); | 76 | av_set_pts_info(st, 64, 1, sample_rate); |
| 76 | 77 | ||
| 77 | cdata->audio_pts = 0; | 78 | cdata->audio_pts = 0; |