47
43
const uint8_t *buf = avpkt->data;
48
44
const uint8_t *buf_end = buf + avpkt->size;
53
46
if (avpkt->size < avctx->width * 2 * avctx->height + 4 + 2*8) {
54
47
av_log(avctx, AV_LOG_ERROR, "Packet is too small.\n");
55
48
return AVERROR_INVALIDDATA;