changeset 8821:58706d84c938 libavcodec

In RV3/4 nonzero MB offset for the first slice also indicates error
author kostya
date Fri, 13 Feb 2009 07:06:36 +0000
parents 7400956a815d
children 01271e32d74e
files rv34.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rv34.c	Fri Feb 13 00:57:22 2009 +0000
+++ b/rv34.c	Fri Feb 13 07:06:36 2009 +0000
@@ -1402,7 +1402,7 @@
         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;
     }