projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68fc9c2
)
fix max b frames with b frame strategy 1
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 May 2005 22:20:26 +0000
(22:20 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 May 2005 22:20:26 +0000
(22:20 +0000)
Originally committed as revision 4300 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
7bf4bfd
..
fae6110
100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-2201,7
+2201,7
@@
static void select_input_picture(MpegEncContext *s){
s->input_picture[i-1]->data[0], s->linesize) + 1;
}
}
- for(i=0; i<s->max_b_frames; i++){
+ for(i=0; i<s->max_b_frames
+1
; i++){
if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break;
}