[FFmpeg-soc] [soc]: r5027 - als/alsdec.c
thilo.borgmann
subversion at mplayerhq.hu
Mon Aug 10 13:12:25 CEST 2009
Author: thilo.borgmann
Date: Mon Aug 10 13:12:25 2009
New Revision: 5027
Log:
Redefined random access frame precondition.
Modified:
als/alsdec.c
Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c Mon Aug 10 10:55:02 2009 (r5026)
+++ als/alsdec.c Mon Aug 10 13:12:25 2009 (r5027)
@@ -821,8 +821,8 @@ static int decode_frame(AVCodecContext *
unsigned int c, sample, ra_frame, bytes_read;
init_get_bits(&ctx->gb, buffer, buffer_size * 8);
- ra_frame = !ctx->frame_id ||
- (sconf->random_access && !(ctx->frame_id % sconf->random_access));
+ ra_frame = sconf->random_access && ((!ctx->frame_id) ||
+ !(ctx->frame_id % sconf->random_access));
// the last frame to decode might have a different length
if (ctx->num_frames && ctx->num_frames - 1 == ctx->frame_id) {
More information about the FFmpeg-soc
mailing list