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

marco subversion at mplayerhq.hu
Sun Sep 9 15:19:25 CEST 2007


Author: marco
Date: Sun Sep  9 15:19:25 2007
New Revision: 1316

Log:
encode single reference frames, so never refer to a second reference frame

Modified:
   dirac/libavcodec/dirac.c

Modified: dirac/libavcodec/dirac.c
==============================================================================
--- dirac/libavcodec/dirac.c	(original)
+++ dirac/libavcodec/dirac.c	Sun Sep  9 15:19:25 2007
@@ -3442,7 +3442,7 @@ static int dirac_encode_blockdata(DiracC
         for (y = 0; y < s->blheight; y++) {
             struct dirac_blockmotion *bl = &s->blmotion[y * s->blwidth + x];
 
-            bl->use_ref = (x + y) % 4;
+            bl->use_ref = (x + y) % 2;
             bl->vect[0][0] = (y % 18) - 9;
             bl->vect[0][1] = (x % 18) - 9;
             bl->vect[1][0] = (y % 7)  - 5;
@@ -3692,7 +3692,7 @@ static int encode_frame(AVCodecContext *
     } else if (s->next_parse_code == 0x0C) {
         dirac_encode_parse_info(s, 0x0C);
         dirac_encode_frame(s);
-        s->next_parse_code = 0x0C; /* XXX: Disabled inter frames.  */
+        s->next_parse_code = 0x09; /* XXX: Disabled inter frames.  */
     } else if (s->next_parse_code == 0x09) {
         s->ref[0] = s->refframes[0].frame.display_picture_number;
         dirac_encode_parse_info(s, 0x00);



More information about the FFmpeg-soc mailing list