Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ross <pross@xvid.org>2011-04-24 03:41:51 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-04-24 05:52:20 +0400
commitc8a5e8a8948bcd7c0d01d3f64d58c1dc7e29d4e2 (patch)
treeb606d8f8f3e22b9470cb6ae23959694a1c50df16 /libavformat/eacdata.c
parentb678d6db95b3f7304db6e01f26807fb23e2e7d0e (diff)
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>
Diffstat (limited to 'libavformat/eacdata.c')
-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;