# HG changeset patch # User jbr # Date 1271972616 0 # Node ID e6bff53199326597b4bdb4ad983b509c868f1c23 # Parent 7ad2eb6a2f1040c352eba44252973b02d252912e ac3dec: return smaller of buf_size and frame_size instead of always returning frame_size. diff -r 7ad2eb6a2f10 -r e6bff5319932 ac3dec.c --- a/ac3dec.c Thu Apr 22 21:19:32 2010 +0000 +++ b/ac3dec.c Thu Apr 22 21:43:36 2010 +0000 @@ -1420,7 +1420,7 @@ out_samples += 256 * s->out_channels; } *data_size = s->num_blocks * 256 * avctx->channels * sizeof (int16_t); - return s->frame_size; + return FFMIN(buf_size, s->frame_size); } /**