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

marco subversion at mplayerhq.hu
Thu Aug 16 16:12:23 CEST 2007


Author: marco
Date: Thu Aug 16 16:12:23 2007
New Revision: 871

Log:
move line into if statement

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Thu Aug 16 16:12:23 2007
@@ -1368,9 +1368,10 @@ static int block_dc_prediction(DiracCont
 static void unpack_block_dc(DiracContext *s, int x, int y, int comp) {
     int res;
 
-    s->blmotion[y * s->blwidth + x].dc[comp] = 0; /* XXX */
-    if (s->blmotion[y * s->blwidth + x].use_ref & 3)
+    if (s->blmotion[y * s->blwidth + x].use_ref & 3) {
+    s->blmotion[y * s->blwidth + x].dc[comp] = 0;
         return;
+    }
 
     res = dirac_arith_read_int(&s->arith, &context_set_dc);
     res += block_dc_prediction(s, x, y, comp);



More information about the FFmpeg-soc mailing list