[FFmpeg-cvslog] avcodec/svq1dec: Remove duplicate buf_size check
Michael Niedermayer
git at videolan.org
Fri May 15 20:32:48 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri May 15 20:06:24 2015 +0200| [ff1d85b0ede12fc9db4fd5df724d3a751be86de5] | committer: Michael Niedermayer
avcodec/svq1dec: Remove duplicate buf_size check
Fixes CID1297573
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff1d85b0ede12fc9db4fd5df724d3a751be86de5
---
libavcodec/svq1dec.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/svq1dec.c b/libavcodec/svq1dec.c
index 6394647..21d4acf 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];
}
More information about the ffmpeg-cvslog
mailing list