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

marco subversion at mplayerhq.hu
Sun Sep 9 17:10:29 CEST 2007


Author: marco
Date: Sun Sep  9 17:10:29 2007
New Revision: 1323

Log:
initialize the chroma shifts and width

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Sun Sep  9 17:10:29 2007
@@ -3558,6 +3558,11 @@ static int dirac_pack_prediction_paramet
     /* Use default weights for the reference frames.  */
     put_bits(pb, 1, 0);
 
+    s->chroma_hshift = s->sequence.chroma_format > 0;
+    s->chroma_vshift = s->sequence.chroma_format > 1;
+    s->sequence.chroma_width  = s->sequence.luma_width  >> s->chroma_hshift;
+    s->sequence.chroma_height = s->sequence.luma_height >> s->chroma_vshift;
+
     s->frame_decoding.chroma_xblen = (s->frame_decoding.luma_xblen
                                       >> s->chroma_hshift);
     s->frame_decoding.chroma_yblen = (s->frame_decoding.luma_yblen



More information about the FFmpeg-soc mailing list