Mercurial > libavcodec.hg
comparison h264.c @ 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 | cd21fd29cf7c |
comparison
equal
deleted
inserted
replaced
5786:8121e27dd9cc | 5787:b92c03847d60 |
---|---|
3491 | 3491 |
3492 pic= remove_long(h, mmco[i].long_arg); | 3492 pic= remove_long(h, mmco[i].long_arg); |
3493 if(pic) unreference_pic(h, pic, 0); | 3493 if(pic) unreference_pic(h, pic, 0); |
3494 | 3494 |
3495 h->long_ref[ mmco[i].long_arg ]= remove_short(h, frame_num); | 3495 h->long_ref[ mmco[i].long_arg ]= remove_short(h, frame_num); |
3496 if (h->long_ref[ mmco[i].long_arg ]){ | 3496 if (h->long_ref[ mmco[i].long_arg ]){ |
3497 h->long_ref[ mmco[i].long_arg ]->long_ref=1; | 3497 h->long_ref[ mmco[i].long_arg ]->long_ref=1; |
3498 h->long_ref_count++; | 3498 h->long_ref_count++; |
3499 } | 3499 } |
3500 } | 3500 } |
3501 break; | 3501 break; |
3502 case MMCO_LONG2UNUSED: | 3502 case MMCO_LONG2UNUSED: |
3503 j = pic_num_extract(h, mmco[i].long_arg, &structure); | 3503 j = pic_num_extract(h, mmco[i].long_arg, &structure); |
3504 pic = h->long_ref[j]; | 3504 pic = h->long_ref[j]; |
3528 unref_pic = 0; | 3528 unref_pic = 0; |
3529 } | 3529 } |
3530 } | 3530 } |
3531 | 3531 |
3532 if (unref_pic) { | 3532 if (unref_pic) { |
3533 pic= remove_long(h, mmco[i].long_arg); | 3533 pic= remove_long(h, mmco[i].long_arg); |
3534 if(pic) unreference_pic(h, pic, 0); | 3534 if(pic) unreference_pic(h, pic, 0); |
3535 | 3535 |
3536 h->long_ref[ mmco[i].long_arg ]= s->current_picture_ptr; | 3536 h->long_ref[ mmco[i].long_arg ]= s->current_picture_ptr; |
3537 h->long_ref[ mmco[i].long_arg ]->long_ref=1; | 3537 h->long_ref[ mmco[i].long_arg ]->long_ref=1; |
3538 h->long_ref_count++; | 3538 h->long_ref_count++; |
3539 } | 3539 } |
3540 | 3540 |
3541 s->current_picture_ptr->reference |= s->picture_structure; | 3541 s->current_picture_ptr->reference |= s->picture_structure; |
3542 current_ref_assigned=1; | 3542 current_ref_assigned=1; |
3543 break; | 3543 break; |