|
|
@@ -410,11 +410,16 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac |
|
|
int hi_ver, lo_ver, ret; |
|
|
int hi_ver, lo_ver, ret; |
|
|
|
|
|
|
|
|
/* parse header */ |
|
|
/* parse header */ |
|
|
|
|
|
if (len < 1) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
c->flags = buf[0]; |
|
|
c->flags = buf[0]; |
|
|
buf++; len--; |
|
|
buf++; len--; |
|
|
if (c->flags & ZMBV_KEYFRAME) { |
|
|
if (c->flags & ZMBV_KEYFRAME) { |
|
|
void *decode_intra = NULL; |
|
|
void *decode_intra = NULL; |
|
|
c->decode_intra= NULL; |
|
|
c->decode_intra= NULL; |
|
|
|
|
|
|
|
|
|
|
|
if (len < 6) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
hi_ver = buf[0]; |
|
|
hi_ver = buf[0]; |
|
|
lo_ver = buf[1]; |
|
|
lo_ver = buf[1]; |
|
|
c->comp = buf[2]; |
|
|
c->comp = buf[2]; |
|
|
|