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:
611e7bc
)
warn user if max=bitrate && max > min
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 29 Jul 2007 19:21:56 +0000
(19:21 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 29 Jul 2007 19:21:56 +0000
(19:21 +0000)
Originally committed as revision 9829 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo_enc.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo_enc.c
b/libavcodec/mpegvideo_enc.c
index
1f630d4
..
cd0ab9b
100644
(file)
--- a/
libavcodec/mpegvideo_enc.c
+++ b/
libavcodec/mpegvideo_enc.c
@@
-342,6
+342,10
@@
int MPV_encode_init(AVCodecContext *avctx)
return -1;
}
+ if(avctx->rc_max_rate && avctx->rc_max_rate == avctx->bit_rate && avctx->rc_max_rate != avctx->rc_min_rate){
+ av_log(avctx, AV_LOG_INFO, "impossible bitrate constraints, this will fail\n");
+ }
+
if(avctx->rc_buffer_size && avctx->bit_rate*av_q2d(avctx->time_base) > avctx->rc_buffer_size){
av_log(avctx, AV_LOG_ERROR, "VBV buffer too small for bitrate\n");
return -1;