|
|
|
@@ -1491,7 +1491,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx, |
|
|
|
av_log(avctx, AV_LOG_ERROR, "Slice offset is greater than frame size\n"); |
|
|
|
return -1; |
|
|
|
} |
|
|
|
init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), buf_size-get_slice_offset(avctx, slices_hdr, 0)); |
|
|
|
init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), (buf_size-get_slice_offset(avctx, slices_hdr, 0))*8); |
|
|
|
if(r->parse_slice_header(r, &r->s.gb, &si) < 0 || si.start){ |
|
|
|
av_log(avctx, AV_LOG_ERROR, "First slice header is incorrect\n"); |
|
|
|
return -1; |
|
|
|
|