1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

set v_edge_pos correctly for field picture mpeg2

Originally committed as revision 6782 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2006-10-24 07:33:39 +00:00
parent 4884b9e50d
commit 5d48f0cb05

View File

@ -2390,10 +2390,12 @@ static void mpeg_decode_picture_coding_extension(MpegEncContext *s)
s->chroma_420_type = get_bits1(&s->gb); s->chroma_420_type = get_bits1(&s->gb);
s->progressive_frame = 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; s->first_field=0;
else{ s->v_edge_pos= 16*s->mb_height;
}else{
s->first_field ^= 1; s->first_field ^= 1;
s->v_edge_pos= 8*s->mb_height;
memset(s->mbskip_table, 0, s->mb_stride*s->mb_height); memset(s->mbskip_table, 0, s->mb_stride*s->mb_height);
} }