changeset 7380:9faeb82ba80b libavcodec

cosmetics (indent and 2 empty lines)
author michael
date Thu, 24 Jul 2008 22:05:58 +0000
parents d3bd73e0f9a9
children 16a60b2f7a7d
files h264.c
diffstat 1 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Thu Jul 24 22:04:29 2008 +0000
+++ b/h264.c	Thu Jul 24 22:05:58 2008 +0000
@@ -3699,10 +3699,10 @@
     const int max_frame_num= 1<<h->sps.log2_max_frame_num;
     int field_poc[2];
 
-        if(h->frame_num < h->prev_frame_num)
-            h->frame_num_offset= h->prev_frame_num_offset + max_frame_num;
-        else
-            h->frame_num_offset= h->prev_frame_num_offset;
+    if(h->frame_num < h->prev_frame_num)
+        h->frame_num_offset= h->prev_frame_num_offset + max_frame_num;
+    else
+        h->frame_num_offset= h->prev_frame_num_offset;
 
     if(h->sps.poc_type==0){
         const int max_poc_lsb= 1<<h->sps.log2_max_poc_lsb;
@@ -3754,8 +3754,10 @@
             field_poc[1] += h->delta_poc[1];
     }else{
         int poc;
-            if(h->nal_ref_idc) poc= 2*(h->frame_num_offset + h->frame_num);
-            else               poc= 2*(h->frame_num_offset + h->frame_num) - 1;
+
+        if(h->nal_ref_idc) poc= 2*(h->frame_num_offset + h->frame_num);
+        else               poc= 2*(h->frame_num_offset + h->frame_num) - 1;
+
         field_poc[0]= poc;
         field_poc[1]= poc;
     }