History

EA cdata demuxer: set codec->sample_fmt

This is required by has_codec_parameters in libavformat/utils.c

Peter Ross committed 15 years ago

Commit c8a5e8a1 parent b678d6d1 file · +1 −0Browse files

Showing the changes to libavformat/eacdata.c (1 of 1 file). Show all

Unified · Split

libavformat/eacdata.c+1−0
@@ -72,6 +72,7 @@ static int cdata_read_header(AVFormatContext *s, AVFormatParameters *ap) · 71 unmodified lines
7272 st->codec->codec_id = CODEC_ID_ADPCM_EA_XAS;
7373 st->codec->channels = cdata->channels;
7474 st->codec->sample_rate = sample_rate;
75+ st->codec->sample_fmt = AV_SAMPLE_FMT_S16;
7576 av_set_pts_info(st, 64, 1, sample_rate);
7677
7778 cdata->audio_pts = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t