[FFmpeg-soc] [soc]: r3580 - mlp/mlpenc.c

ramiro subversion at mplayerhq.hu
Sun Aug 24 16:09:36 CEST 2008


Author: ramiro
Date: Sun Aug 24 16:09:35 2008
New Revision: 3580

Log:
Allow non-power-of-two major header intervals.

Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 24 16:09:35 2008
@@ -1711,7 +1711,7 @@ static int mlp_encode_frame(AVCodecConte
         return -1;
     }
 
-    restart_frame = !(avctx->frame_number & (ctx->major_header_interval - 1));
+    restart_frame = !(avctx->frame_number % ctx->major_header_interval);
 
     if (restart_frame) {
         unsigned int index, subblock;



More information about the FFmpeg-soc mailing list