Commit c901ae94 authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

bitpacked: fix potential overflow

Fixes: CID1404842
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
parent 7c7e7c44
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment