---
 libavcodec/ac3enc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git libavcodec/ac3enc.c libavcodec/ac3enc.c
index 7f501a0..68ba403 100644
--- libavcodec/ac3enc.c
+++ libavcodec/ac3enc.c
@@ -897,7 +897,7 @@ static av_cold int AC3_encode_init(AVCodecContext *avctx)
     /* calculate crc_inv for both possible frame sizes */
     frame_size_58 = (( s->frame_size    >> 2) + ( s->frame_size    >> 4)) << 1;
     s->crc_inv[0] = pow_poly((CRC16_POLY >> 1), (8 * frame_size_58) - 16, CRC16_POLY);
-    frame_size_58 = (((s->frame_size+1) >> 2) + ((s->frame_size+1) >> 4)) << 1;
+    frame_size_58 = (((s->frame_size+2) >> 2) + ((s->frame_size+2) >> 4)) << 1;
     s->crc_inv[1] = pow_poly((CRC16_POLY >> 1), (8 * frame_size_58) - 16, CRC16_POLY);
 
     /* bit allocation init */
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to