aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-15 20:06:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-15 20:06:24 +0200
commitff1d85b0ede12fc9db4fd5df724d3a751be86de5 (patch)
tree5e08eead5d4b6c247e17b2693f04a9199f1195ec
parentfc624ec9ba7e5c4e8d905ac10f605a43d123f95a (diff)
downloadffmpeg-ff1d85b0ede12fc9db4fd5df724d3a751be86de5.tar.gz
avcodec/svq1dec: Remove duplicate buf_size check
Fixes CID1297573 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/svq1dec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 6394647a0c..21d4acf87d 100644
--- a/libavcodec/svq1dec.c
+++ b/libavcodec/svq1dec.c
@@ -650,9 +650,6 @@ static int svq1_decode_frame(AVCodecContext *avctx, void *data,
src = (uint32_t *)(s->pkt_swapped + 4);
- if (buf_size < 36)
- return AVERROR_INVALIDDATA;
-
for (i = 0; i < 4; i++)
src[i] = ((src[i] << 16) | (src[i] >> 16)) ^ src[7 - i];
}