]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Re-indent after PAFF MMCO implementation patch.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 7 Oct 2007 23:46:51 +0000 (23:46 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 7 Oct 2007 23:46:51 +0000 (23:46 +0000)
patch by Jeff Downs, heydowns a borg d com
original thread:
Subject: [FFmpeg-devel] [PATCH] Implement PAFF in H.264
Date: 18/09/07 20:30

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10679 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264.c

index d972032274deb28eea7c5e64da030bad4d4af7e0..56048d9f8e673df33d3f7e9efe11f7eccce9a254 100644 (file)
@@ -3493,10 +3493,10 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
                 if(pic) unreference_pic(h, pic, 0);
 
                 h->long_ref[ mmco[i].long_arg ]= remove_short(h, frame_num);
-            if (h->long_ref[ mmco[i].long_arg ]){
-                h->long_ref[ mmco[i].long_arg ]->long_ref=1;
-                h->long_ref_count++;
-            }
+                if (h->long_ref[ mmco[i].long_arg ]){
+                    h->long_ref[ mmco[i].long_arg ]->long_ref=1;
+                    h->long_ref_count++;
+                }
             }
             break;
         case MMCO_LONG2UNUSED:
@@ -3530,12 +3530,12 @@ static int execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){
             }
 
             if (unref_pic) {
-            pic= remove_long(h, mmco[i].long_arg);
-            if(pic) unreference_pic(h, pic, 0);
+                pic= remove_long(h, mmco[i].long_arg);
+                if(pic) unreference_pic(h, pic, 0);
 
-            h->long_ref[ mmco[i].long_arg ]= s->current_picture_ptr;
-            h->long_ref[ mmco[i].long_arg ]->long_ref=1;
-            h->long_ref_count++;
+                h->long_ref[ mmco[i].long_arg ]= s->current_picture_ptr;
+                h->long_ref[ mmco[i].long_arg ]->long_ref=1;
+                h->long_ref_count++;
             }
 
             s->current_picture_ptr->reference |= s->picture_structure;