bitpacked: fix potential overflow

Fixes: CID1404842

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
pull/117/merge
Rostislav Pehlivanov 8 years ago
parent 7c7e7c44a6
commit c901ae9440
  1. 2
      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;

Loading…
Cancel
Save