aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2009-02-13 07:06:36 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2009-02-13 07:06:36 +0000
commit86dd3974e56841728075eca0768df02a0157303d (patch)
tree8de482f0c50ab3105a83b5736c6049247573d52f /libavcodec/rv34.c
parente15421fe2bc50463eda278e1986a6d4b900e54fa (diff)
downloadffmpeg-86dd3974e56841728075eca0768df02a0157303d.tar.gz
In RV3/4 nonzero MB offset for the first slice also indicates error
Originally committed as revision 17201 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index ae57973a3a..820fb22b21 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -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;
}