[FFmpeg-cvslog] flacdec: remove redundant setting of avctx->sample_fmt

Mans Rullgard git at videolan.org
Wed Jul 4 00:36:31 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Mon Jul  2 13:49:13 2012 +0100| [4719ea7e1e6113010da2ccdb9a84e45104ab4de7] | committer: Mans Rullgard

flacdec: remove redundant setting of avctx->sample_fmt

Signed-off-by: Mans Rullgard <mans at mansr.com>

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

 libavcodec/flacdec.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index cd2a693..6a06d19 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -108,8 +108,6 @@ static av_cold int flac_decode_init(AVCodecContext *avctx)
     FLACContext *s = avctx->priv_data;
     s->avctx = avctx;
 
-    avctx->sample_fmt = AV_SAMPLE_FMT_S16;
-
     /* for now, the raw FLAC header is allowed to be passed to the decoder as
        frame data instead of extradata. */
     if (!avctx->extradata)



More information about the ffmpeg-cvslog mailing list