Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Unified Diff: source/patched-ffmpeg-mt/libavcodec/mpegvideo_enc.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/mpegvideo.c ('k') | source/patched-ffmpeg-mt/libavcodec/msmpeg4.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/patched-ffmpeg-mt/libavcodec/mpegvideo_enc.c
===================================================================
--- source/patched-ffmpeg-mt/libavcodec/mpegvideo_enc.c (revision 59334)
+++ source/patched-ffmpeg-mt/libavcodec/mpegvideo_enc.c (working copy)
@@ -352,7 +352,7 @@
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){
+ if(avctx->rc_buffer_size && avctx->bit_rate*(int64_t)avctx->time_base.num > avctx->rc_buffer_size * (int64_t)avctx->time_base.den){
av_log(avctx, AV_LOG_ERROR, "VBV buffer too small for bitrate\n");
return -1;
}
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/mpegvideo.c ('k') | source/patched-ffmpeg-mt/libavcodec/msmpeg4.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698