diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-07-24 22:05:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-07-24 22:05:58 +0000 |
commit | 5710b371602774b49d432a6bd67928fb07186fe3 (patch) | |
tree | f55999f2d4ec440b53424d9f0b48f78a193c1417 /libavcodec | |
parent | 80f8e035baf47a98cae3ce3a309cca1f5e499280 (diff) | |
download | ffmpeg-5710b371602774b49d432a6bd67928fb07186fe3.tar.gz |
cosmetics (indent and 2 empty lines)
Originally committed as revision 14378 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 9107301a17..437a605cdd 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -3699,10 +3699,10 @@ static int init_poc(H264Context *h){ 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 @@ static int init_poc(H264Context *h){ 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; } |