Mercurial > libavcodec.hg
changeset 4070:ee762ee26dc2 libavcodec
set v_edge_pos correctly for field picture mpeg2
author | michael |
---|---|
date | Tue, 24 Oct 2006 07:33:39 +0000 |
parents | 0df780a93aa8 |
children | 00ad06966bff |
files | mpeg12.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Tue Oct 24 05:01:04 2006 +0000 +++ b/mpeg12.c Tue Oct 24 07:33:39 2006 +0000 @@ -2390,10 +2390,12 @@ s->chroma_420_type = get_bits1(&s->gb); s->progressive_frame = get_bits1(&s->gb); - if(s->picture_structure == PICT_FRAME) + if(s->picture_structure == PICT_FRAME){ s->first_field=0; - else{ + s->v_edge_pos= 16*s->mb_height; + }else{ s->first_field ^= 1; + s->v_edge_pos= 8*s->mb_height; memset(s->mbskip_table, 0, s->mb_stride*s->mb_height); }