diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-09-28 03:47:10 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-10-26 20:01:06 +0400 |
commit | 83efd7652e6bf916bfecfc0ff4c961df928d228e (patch) | |
tree | 836dad1ad3c4e3b2409ef5c9a8ba04e5c8a34eb4 /libavcodec/pcm.c | |
parent | 381e195b46d080aee1d9b05ef2b6b140e9463519 (diff) |
pcmdec: remove unnecessary check for sample_fmt change
Diffstat (limited to 'libavcodec/pcm.c')
-rw-r--r-- | libavcodec/pcm.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/pcm.c b/libavcodec/pcm.c index 158366c19a..c0d093015a 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; |