Commit 91738915 authored by andoma's avatar andoma

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



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10673 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c8132696
...@@ -3682,11 +3682,15 @@ static int init_poc(H264Context *h){ ...@@ -3682,11 +3682,15 @@ static int init_poc(H264Context *h){
field_poc[1]= poc; 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]; 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]; 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]); s->current_picture_ptr->poc= FFMIN(field_poc[0], field_poc[1]);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment