[FFmpeg-cvslog] pcmdec: remove unnecessary check for sample_fmt change

Justin Ruggles git at videolan.org
Thu Oct 27 01:46:44 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Tue Sep 27 19:47:10 2011 -0400| [83efd7652e6bf916bfecfc0ff4c961df928d228e] | committer: Justin Ruggles

pcmdec: remove unnecessary check for sample_fmt change

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

 libavcodec/pcm.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c
index 158366c..c0d0930 100644
--- a/libavcodec/pcm.c
+++ b/libavcodec/pcm.c
@@ -266,11 +266,6 @@ static int pcm_decode_frame(AVCodecContext *avctx,
     samples = data;
     src = buf;
 
-    if (avctx->sample_fmt!=avctx->codec->sample_fmts[0]) {
-        av_log(avctx, AV_LOG_ERROR, "invalid sample_fmt\n");
-        return -1;
-    }
-
     if(avctx->channels <= 0 || avctx->channels > MAX_CHANNELS){
         av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n");
         return -1;



More information about the ffmpeg-cvslog mailing list