Browse Source

Override a few values read so as to ensure that things are not inconsistent.

Originally committed as revision 20654 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
87f6806069
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      libavcodec/mpeg12.c

+ 7
- 0
libavcodec/mpeg12.c View File

@@ -1545,6 +1545,13 @@ static void mpeg_decode_picture_coding_extension(Mpeg1Context *s1)
s->chroma_420_type = get_bits1(&s->gb);
s->progressive_frame = get_bits1(&s->gb);

if(s->progressive_sequence)
s->progressive_frame= 1;
if(s->progressive_frame){
s->picture_structure= PICT_FRAME;
s->frame_pred_frame_dct= 1;
}

if(s->picture_structure == PICT_FRAME){
s->first_field=0;
s->v_edge_pos= 16*s->mb_height;


Loading…
Cancel
Save