[FFmpeg-devel] [PATCH 2/4] EA cdata demuxer: set codec->sample_fmt

Peter Ross pross at xvid.org
Sat Apr 23 14:08:58 CEST 2011


This is required by has_codec_parameters in libavformat/utils.c
---
 libavformat/eacdata.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index 7b109ff..ce7a69c 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 = 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/20110423/8b46f1bd/attachment.asc>


More information about the ffmpeg-devel mailing list