[FFmpeg-cvslog] EA cdata demuxer: set codec->sample_fmt

Peter Ross git at videolan.org
Sun Apr 24 04:16:54 CEST 2011


ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Sun Apr 24 09:41:51 2011 +1000| [c8a5e8a8948bcd7c0d01d3f64d58c1dc7e29d4e2] | committer: Michael Niedermayer

EA cdata demuxer: set codec->sample_fmt

This is required by has_codec_parameters in libavformat/utils.c

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8a5e8a8948bcd7c0d01d3f64d58c1dc7e29d4e2
---

 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;



More information about the ffmpeg-cvslog mailing list