# HG changeset patch # User andoma # Date 1191685498 0 # Node ID 58647a83d4163486fcdfbab38c43ba94a571cfe7 # Parent 0b3aa6f4c31354f0ecf7c6081c702fecf655f8be Set Picture.poc for fields and field pairs. Part of PAFF implementation. 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 diff -r 0b3aa6f4c313 -r 58647a83d416 h264.c --- a/h264.c Sat Oct 06 05:59:14 2007 +0000 +++ b/h264.c Sat Oct 06 15:44:58 2007 +0000 @@ -3682,11 +3682,15 @@ field_poc[1]= poc; } - if(s->picture_structure != PICT_BOTTOM_FIELD) + if(s->picture_structure != PICT_BOTTOM_FIELD) { s->current_picture_ptr->field_poc[0]= field_poc[0]; - if(s->picture_structure != PICT_TOP_FIELD) + s->current_picture_ptr->poc = field_poc[0]; + } + if(s->picture_structure != PICT_TOP_FIELD) { s->current_picture_ptr->field_poc[1]= field_poc[1]; - if(s->picture_structure == PICT_FRAME) // FIXME field pix? + s->current_picture_ptr->poc = field_poc[1]; + } + if(!FIELD_PICTURE || !s->first_field) s->current_picture_ptr->poc= FFMIN(field_poc[0], field_poc[1]); return 0;