diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-04-05 20:51:13 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-04-05 20:51:13 +0100 |
commit | c901ae944040855e05b25f8d81be6b6f327ce2a4 (patch) | |
tree | b930af71fc72fa61593ecfafdae2c67cf4ceccd7 /libavcodec/bitpacked.c | |
parent | 7c7e7c44a6eb68eca861e45cb2ce78f582b12c69 (diff) | |
download | ffmpeg-c901ae944040855e05b25f8d81be6b6f327ce2a4.tar.gz |
bitpacked: fix potential overflow
Fixes: CID1404842
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/bitpacked.c')
-rw-r--r-- | libavcodec/bitpacked.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bitpacked.c b/libavcodec/bitpacked.c index 949d20c961..2af8126b74 100644 --- a/libavcodec/bitpacked.c +++ b/libavcodec/bitpacked.c @@ -59,7 +59,7 @@ static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame, AVPacket *avpkt) { uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20; - uint64_t packet_size = avpkt->size * 8; + uint64_t packet_size = (uint64_t)avpkt->size * 8; GetBitContext bc; uint16_t *y, *u, *v; int ret, i; |