[Ffmpeg-cvslog] r6782 - trunk/libavcodec/mpeg12.c
michael
subversion
Tue Oct 24 09:33:40 CEST 2006
Author: michael
Date: Tue Oct 24 09:33:39 2006
New Revision: 6782
Modified:
trunk/libavcodec/mpeg12.c
Log:
set v_edge_pos correctly for field picture mpeg2
Modified: trunk/libavcodec/mpeg12.c
==============================================================================
--- trunk/libavcodec/mpeg12.c (original)
+++ trunk/libavcodec/mpeg12.c Tue Oct 24 09:33:39 2006
@@ -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);
}
More information about the ffmpeg-cvslog
mailing list