Mercurial > libavcodec.hg
changeset 10595:c58c770b17f5 libavcodec
Override a few values read so as to ensure that things are not inconsistent.
author | michael |
---|---|
date | Sun, 29 Nov 2009 03:32:30 +0000 |
parents | 73779b8e6c5f |
children | a228e8e3e347 |
files | mpeg12.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg12.c Sun Nov 29 03:05:11 2009 +0000 +++ b/mpeg12.c Sun Nov 29 03:32:30 2009 +0000 @@ -1545,6 +1545,13 @@ 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;