[Ffmpeg-cvslog] r6395 - trunk/libavcodec/rv10.c

michael subversion
Sat Sep 30 18:00:28 CEST 2006


Author: michael
Date: Sat Sep 30 18:00:27 2006
New Revision: 6395

Modified:
   trunk/libavcodec/rv10.c

Log:
seems only 3 bits are used for the number of resolutions, some rv30 files have this set to 10 even though there are just 2 resolutions in the extradata


Modified: trunk/libavcodec/rv10.c
==============================================================================
--- trunk/libavcodec/rv10.c	(original)
+++ trunk/libavcodec/rv10.c	Sat Sep 30 18:00:27 2006
@@ -433,7 +433,7 @@
 
     if(s->avctx->has_b_frames){
         int f, new_w, new_h;
-        int v= s->avctx->extradata_size >= 4 ? ((uint8_t*)s->avctx->extradata)[1] : 0;
+        int v= s->avctx->extradata_size >= 4 ? 7&((uint8_t*)s->avctx->extradata)[1] : 0;
 
         if (get_bits(&s->gb, 1)){
             av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");




More information about the ffmpeg-cvslog mailing list