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

ramiro subversion at mplayerhq.hu
Sun Aug 24 19:53:16 CEST 2008


Author: ramiro
Date: Sun Aug 24 19:53:16 2008
New Revision: 3591

Log:
Oops... this should have stayed where it was before r3583.


Modified:
   mlp/mlpenc.c

Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c	(original)
+++ mlp/mlpenc.c	Sun Aug 24 19:53:16 2008
@@ -1705,12 +1705,6 @@ static int mlp_encode_frame(AVCodecConte
         return 0;
     }
 
-    if (ctx->frame_size[ctx->frame_index] > MAX_BLOCKSIZE) {
-        av_log(avctx, AV_LOG_ERROR, "Invalid frame size (%d > %d)\n",
-               ctx->frame_size[ctx->frame_index], MAX_BLOCKSIZE);
-        return -1;
-    }
-
     ctx->sample_buffer = ctx->major_frame_buffer
                        + ctx->frame_index * ctx->one_sample_buffer_size;
 
@@ -1731,6 +1725,12 @@ static int mlp_encode_frame(AVCodecConte
         }
     }
 
+    if (ctx->frame_size[ctx->frame_index] > MAX_BLOCKSIZE) {
+        av_log(avctx, AV_LOG_ERROR, "Invalid frame size (%d > %d)\n",
+               ctx->frame_size[ctx->frame_index], MAX_BLOCKSIZE);
+        return -1;
+    }
+
     restart_frame = !ctx->frame_index;
 
     if (restart_frame) {



More information about the FFmpeg-soc mailing list