[FFmpeg-soc] [soc]: r3688 - mlp/mlpenc.c
ramiro
subversion at mplayerhq.hu
Sun Aug 31 21:24:01 CEST 2008
Author: ramiro
Date: Sun Aug 31 21:24:00 2008
New Revision: 3688
Log:
Prepare number_of_samples counter to wrap around the input frames.
Modified:
mlp/mlpenc.c
Modified: mlp/mlpenc.c
==============================================================================
--- mlp/mlpenc.c (original)
+++ mlp/mlpenc.c Sun Aug 31 21:24:00 2008
@@ -2190,7 +2190,7 @@ input_and_return:
ctx->number_of_frames = seq_index + 1;
for (index = 0; index < ctx->number_of_frames; index++) {
- number_of_samples += ctx->frame_size[ctx->starting_frame_index + index];
+ number_of_samples += ctx->frame_size[(ctx->starting_frame_index + index) % ctx->max_restart_interval];
}
ctx->number_of_samples = number_of_samples;
More information about the FFmpeg-soc
mailing list