changeset 2710:b71d3566fc6d libavcodec

fix mpeg2 chroma_420_type
author michael
date Wed, 18 May 2005 19:42:42 +0000
parents a119d4eb53d7
children 3ba3640bae2a
files mpeg12.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpeg12.c	Wed May 18 17:14:59 2005 +0000
+++ b/mpeg12.c	Wed May 18 19:42:42 2005 +0000
@@ -468,8 +468,8 @@
         put_bits(&s->pb, 1, s->intra_vlc_format);
         put_bits(&s->pb, 1, s->alternate_scan);
         put_bits(&s->pb, 1, s->repeat_first_field);
-        put_bits(&s->pb, 1, s->chroma_420_type=1);
         s->progressive_frame = s->progressive_sequence;
+        put_bits(&s->pb, 1, s->chroma_420_type=s->progressive_frame);
         put_bits(&s->pb, 1, s->progressive_frame);
         put_bits(&s->pb, 1, 0); //composite_display_flag
     }