[FFmpeg-soc] [soc]: r3621 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Mon Aug 25 22:49:14 CEST 2008
Author: ramiro
Date: Mon Aug 25 22:49:14 2008
New Revision: 3621
Log:
Don't re-compress frames if scratch buffer already contains the appropriate
data. This happens when the restart frame interval is fixed and the only data
analyzed in the scratch buffer is the full major frame.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c (original)
+++ mlp/mlpenc.c Mon Aug 25 22:49:14 2008
@@ -1868,9 +1868,13 @@ static int mlp_encode_frame(AVCodecConte
if (restart_frame) {
set_major_params(ctx);
+ if (ctx->major_header_subinterval != ctx->major_header_interval)
process_major_frame(ctx);
}
+ if (ctx->major_header_subinterval == ctx->major_header_interval)
+ ctx->write_buffer = ctx->sample_buffer;
+
avctx->coded_frame->key_frame = restart_frame;
bytes_written = write_access_unit(ctx, buf, buf_size, restart_frame);
More information about the FFmpeg-soc
mailing list