Mercurial > libavcodec.hg
changeset 7896:3557386b7a97 libavcodec
Set poc for field references in MBAFF.
author | michael |
---|---|
date | Sun, 21 Sep 2008 02:19:45 +0000 |
parents | 726e49d4d0ee |
children | 004f3c69fe7b |
files | h264.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Sat Sep 20 11:13:14 2008 +0000 +++ b/h264.c Sun Sep 21 02:19:45 2008 +0000 @@ -2935,10 +2935,12 @@ for(j=0; j<3; j++) field[0].linesize[j] <<= 1; field[0].reference = PICT_TOP_FIELD; + field[0].poc= field[0].field_poc[0]; field[1] = field[0]; for(j=0; j<3; j++) field[1].data[j] += frame->linesize[j]; field[1].reference = PICT_BOTTOM_FIELD; + field[1].poc= field[1].field_poc[1]; h->luma_weight[list][16+2*i] = h->luma_weight[list][16+2*i+1] = h->luma_weight[list][i]; h->luma_offset[list][16+2*i] = h->luma_offset[list][16+2*i+1] = h->luma_offset[list][i];