Commit 8b9180a7 authored by kostya's avatar kostya

In RV3/4 nonzero MB offset for the first slice also indicates error

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17201 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent d77fa11e
......@@ -1402,7 +1402,7 @@ int ff_rv34_decode_frame(AVCodecContext *avctx,
return -1;
}
init_get_bits(&s->gb, buf+get_slice_offset(avctx, slices_hdr, 0), buf_size-get_slice_offset(avctx, slices_hdr, 0));
if(r->parse_slice_header(r, &r->s.gb, &si) < 0){
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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment