diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-10-24 07:33:39 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-10-24 07:33:39 +0000 |
commit | 5d48f0cb05b72cee05a3bdea603f663b2fe1011b (patch) | |
tree | a0da80f068187eccd380d1eb3aad798100fc38e7 /libavcodec/mpeg12.c | |
parent | 4884b9e50d416f84e64bfaf546a03e490cb83a2f (diff) | |
download | ffmpeg-5d48f0cb05b72cee05a3bdea603f663b2fe1011b.tar.gz |
set v_edge_pos correctly for field picture mpeg2
Originally committed as revision 6782 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpeg12.c')
-rw-r--r-- | libavcodec/mpeg12.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 5095bfb7d8..99732ac630 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -2390,10 +2390,12 @@ static void mpeg_decode_picture_coding_extension(MpegEncContext *s) 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); } |