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

marco subversion at mplayerhq.hu
Mon Sep 10 17:57:52 CEST 2007


Author: marco
Date: Mon Sep 10 17:57:51 2007
New Revision: 1333

Log:
don't use intra DC prediction for inter frames

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Mon Sep 10 17:57:51 2007
@@ -3233,7 +3233,7 @@ static int encode_subband(DiracContext *
     init_put_bits(&pb, s->encodebuf, (1 << 20) * 8);
     dirac_arith_coder_init(&s->arith, &pb);
 
-    if (level == 0)
+    if (level == 0 && s->refs == 0)
         intra_dc_coding(s, coeffs);
 
     for (ypos = 0; ypos < s->codeblocksv[level]; ypos++)



More information about the FFmpeg-soc mailing list