aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2011-04-24 09:41:51 +1000
committerMichael Niedermayer <michaelni@gmx.at>2011-04-24 03:52:20 +0200
commitc8a5e8a8948bcd7c0d01d3f64d58c1dc7e29d4e2 (patch)
treeb606d8f8f3e22b9470cb6ae23959694a1c50df16
parentb678d6db95b3f7304db6e01f26807fb23e2e7d0e (diff)
downloadffmpeg-c8a5e8a8948bcd7c0d01d3f64d58c1dc7e29d4e2.tar.gz
EA cdata demuxer: set codec->sample_fmt
This is required by has_codec_parameters in libavformat/utils.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/eacdata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index 7b109ff888..7cdd6ff22d 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;