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;
 }
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to