[Ffmpeg-cvslog] r5778 - trunk/libavcodec/vp3.c

michael subversion
Mon Jul 17 15:09:46 CEST 2006


Author: michael
Date: Mon Jul 17 15:09:45 2006
New Revision: 5778

Modified:
   trunk/libavcodec/vp3.c

Log:
parse all QIS values (we still ignore them though ...)


Modified: trunk/libavcodec/vp3.c
==============================================================================
--- trunk/libavcodec/vp3.c	(original)
+++ trunk/libavcodec/vp3.c	Mon Jul 17 15:09:45 2006
@@ -229,6 +229,8 @@
     DSPContext dsp;
     int flipped_image;
 
+    int qis[3];
+    int nqis;
     int quality_index;
     int last_quality_index;
 
@@ -2376,9 +2378,13 @@
     if (!s->theora)
         skip_bits(&gb, 1);
     s->last_quality_index = s->quality_index;
-    s->quality_index = get_bits(&gb, 6);
-    if (s->theora >= 0x030200)
-        skip_bits1(&gb);
+
+    s->nqis=0;
+    do{
+        s->qis[s->nqis++]= get_bits(&gb, 6);
+    } while(s->theora >= 0x030200 && s->nqis<3 && get_bits1(&gb));
+
+    s->quality_index= s->qis[0];
 
     if (s->avctx->debug & FF_DEBUG_PICT_INFO)
         av_log(s->avctx, AV_LOG_INFO, " VP3 %sframe #%d: Q index = %d\n",




More information about the ffmpeg-cvslog mailing list