changeset 4471:cfbd1f3d457c libavcodec

Save frame header info in context variables
author kostya
date Sun, 04 Feb 2007 10:46:28 +0000
parents 2c9a66c5223a
children 926ee87203cb
files vc1.c
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Sun Feb 04 10:45:01 2007 +0000
+++ b/vc1.c	Sun Feb 04 10:46:28 2007 +0000
@@ -1616,14 +1616,13 @@
 
 static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
 {
-    int fcm;
     int pqindex, lowquant;
     int status;
 
     v->p_frame_skipped = 0;
 
     if(v->interlace)
-        fcm = decode012(gb);
+        v->fcm = decode012(gb);
     switch(get_prefix(gb, 0, 4)) {
     case 0:
         v->s.pict_type = P_TYPE;
@@ -1646,10 +1645,10 @@
         get_bits(gb, 8);
     if(v->broadcast) {
         if(!v->interlace || v->panscanflag) {
-            get_bits(gb, 2);
+            v->rptfrm = get_bits(gb, 2);
         } else {
-            get_bits1(gb);
-            get_bits1(gb);
+            v->tff = get_bits1(gb);
+            v->rptfrm = get_bits1(gb);
         }
     }
     if(v->panscanflag) {