changeset 2371:949f84ce470a libavcodec

10l (dont use codec_id for error simulation)
author michael
date Sun, 28 Nov 2004 14:58:50 +0000
parents 26560d4fdb1f
children 2d95a6cd757a
files mpegvideo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo.c	Sat Nov 27 18:10:06 2004 +0000
+++ b/mpegvideo.c	Sun Nov 28 14:58:50 2004 +0000
@@ -4567,7 +4567,7 @@
                     current_packet_size= pbBufPtr(&s->pb) - s->ptr_lastgob;
                     
                     if(s->avctx->error_rate && s->resync_mb_x + s->resync_mb_y > 0){
-                        int r= put_bits_count(&s->pb)/8 + s->picture_number + s->codec_id + s->mb_x + s->mb_y;
+                        int r= put_bits_count(&s->pb)/8 + s->picture_number + 16 + s->mb_x + s->mb_y;
                         int d= 100 / s->avctx->error_rate;
                         if(r % d == 0){
                             current_packet_size=0;