|
|
@@ -639,6 +639,11 @@ static int vp8_decode_frame_header(VP8Context *s, const uint8_t *buf, int buf_si |
|
|
int width = s->avctx->width; |
|
|
int width = s->avctx->width; |
|
|
int height = s->avctx->height; |
|
|
int height = s->avctx->height; |
|
|
|
|
|
|
|
|
|
|
|
if (buf_size < 3) { |
|
|
|
|
|
av_log(s->avctx, AV_LOG_ERROR, "Insufficent data (%d) for header\n", buf_size); |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
s->keyframe = !(buf[0] & 1); |
|
|
s->keyframe = !(buf[0] & 1); |
|
|
s->profile = (buf[0]>>1) & 7; |
|
|
s->profile = (buf[0]>>1) & 7; |
|
|
s->invisible = !(buf[0] & 0x10); |
|
|
s->invisible = !(buf[0] & 0x10); |
|
|
|