changeset 5787:b92c03847d60 libavcodec

Re-indent after PAFF MMCO implementation patch. 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
author cehoyos
date Sun, 07 Oct 2007 23:46:51 +0000
parents 8121e27dd9cc
children a3a2968e16ad
files h264.c
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Sun Oct 07 23:32:42 2007 +0000
+++ b/h264.c	Sun Oct 07 23:46:51 2007 +0000
@@ -3493,10 +3493,10 @@
                 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 @@
             }
 
             if (unref_pic) {
-            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++;
+                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++;
             }
 
             s->current_picture_ptr->reference |= s->picture_structure;