changeset 2412:436a5f740f29 libavcodec

fixing decoding of http://mplayerhq.hu/~atmos4/ffrv20-crashing-atmos.rm
author michael
date Wed, 05 Jan 2005 02:36:10 +0000
parents 0427eb3579b6
children d0b4f62a63ae
files rv10.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/rv10.c	Wed Jan 05 00:20:52 2005 +0000
+++ b/rv10.c	Wed Jan 05 02:36:10 2005 +0000
@@ -438,12 +438,12 @@
         }
         seq= get_bits(&s->gb, 14)<<1;
 
-        if(v>1){
+        if(v>1 || (s->avctx->sub_id < 0x20201002 && v>0)){
             f= get_bits(&s->gb, av_log2(v-1)+1);
         }
         
         if(s->avctx->debug & FF_DEBUG_PICT_INFO){
-            av_log(s->avctx, AV_LOG_DEBUG, "F %d\n", f);
+            av_log(s->avctx, AV_LOG_DEBUG, "F %d/%d\n", f, v);
         }
 
         mb_pos= get_bits(&s->gb, av_log2(s->mb_num-1)+1);