[FFmpeg-soc] [soc]: r3821 - dirac/libavcodec/dirac.c

conrad subversion at mplayerhq.hu
Tue Nov 11 09:38:25 CET 2008


Author: conrad
Date: Tue Nov 11 09:38:25 2008
New Revision: 3821

Log:
picture_coding_mode signals that pictures are coded as fields
So divide the height by two as the spec says


Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Tue Nov 11 09:38:25 2008
@@ -365,7 +365,10 @@ int ff_dirac_parse_sequence_header(GetBi
 
     avcodec_set_dimensions(avctx, source->width, source->height);
 
+    // coded as fields
     picture_coding_mode = svq3_get_ue_golomb(gb);
+    if (picture_coding_mode == 1)
+        source->height >>= 1;
 
     return 0;
 }



More information about the FFmpeg-soc mailing list