OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073c259
)
10l (dont use codec_id for error simulation)
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 28 Nov 2004 14:58:50 +0000
(14:58 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 28 Nov 2004 14:58:50 +0000
(14:58 +0000)
Originally committed as revision 3718 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
7b2cb22
..
9eeaee8
100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-4567,7
+4567,7
@@
static int encode_thread(AVCodecContext *c, void *arg){
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;