[FFmpeg-devel] [PATCH] EA cdata demuxer: set codec->sample_fmt
Peter Ross
pross at xvid.org
Sun Apr 24 01:41:51 CEST 2011
This is required by has_codec_parameters in libavformat/utils.c
---
Update patch to use AV_SAMPLE_FMT_S16. Cheers,
libavformat/eacdata.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index 7b109ff..7cdd6ff 100644
--- a/libavformat/eacdata.c
+++ b/libavformat/eacdata.c
@@ -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;
--
1.7.4.1
-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110424/d9a1d202/attachment.asc>
More information about the ffmpeg-devel
mailing list