[FFmpeg-devel] [PATCH] eacdata: do not set sample_fmt

Paul B Mahol onemda at gmail.com
Thu Jan 24 13:42:55 CET 2013


It is supposed to be set from lavc only.
Also this one differs from one set in decoder.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavformat/eacdata.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/eacdata.c b/libavformat/eacdata.c
index be31d00..57e5145 100644
--- a/libavformat/eacdata.c
+++ b/libavformat/eacdata.c
@@ -76,7 +76,6 @@ static int cdata_read_header(AVFormatContext *s)
     st->codec->channels = cdata->channels;
     st->codec->channel_layout = channel_layout;
     st->codec->sample_rate = sample_rate;
-    st->codec->sample_fmt = AV_SAMPLE_FMT_S16;
     avpriv_set_pts_info(st, 64, 1, sample_rate);
 
     cdata->audio_pts = 0;
-- 
1.7.11.4



More information about the ffmpeg-devel mailing list