[vlc-commits] Avcodec: fix a sign warning
Jean-Baptiste Kempf
git at videolan.org
Sun Jul 29 20:37:45 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Jul 29 08:48:49 2012 +0200| [e2381bf9565fa6e2a3547dcfc6423dc5d40f682e] | committer: Jean-Baptiste Kempf
Avcodec: fix a sign warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e2381bf9565fa6e2a3547dcfc6423dc5d40f682e
---
modules/codec/avcodec/encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c
index 75e5382..d2d20bf 100644
--- a/modules/codec/avcodec/encoder.c
+++ b/modules/codec/avcodec/encoder.c
@@ -639,7 +639,7 @@ int OpenEncoder( vlc_object_t *p_this )
if( i_codec_id == CODEC_ID_VP8 )
{
/* Lets give bitrate tolerance */
- p_context->bit_rate_tolerance = __MAX(2 * p_enc->fmt_out.i_bitrate, p_sys->i_vtolerance );
+ p_context->bit_rate_tolerance = __MAX(2 * (int)p_enc->fmt_out.i_bitrate, p_sys->i_vtolerance );
/* default to 120 frames between keyframe */
if( !var_GetInteger( p_enc, ENC_CFG_PREFIX "keyint" ) )
p_context->gop_size = 120;
More information about the vlc-commits
mailing list