From 82e53b3cef924f250f928fca6348204e2ace90d8 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Tue, 2 Aug 2016 19:02:09 +0200 Subject: lavc/vaapi_encode_h26x: Fix a crash if "." is not the decimal separator. Fixes Debian bugs #831529, #831909, #832964. Signed-off-by: Mark Thompson --- libavcodec/vaapi_encode_h264.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/vaapi_encode_h264.c') diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 979cf37cf4..5bed4e493f 100644 --- a/libavcodec/vaapi_encode_h264.c +++ b/libavcodec/vaapi_encode_h264.c @@ -1323,10 +1323,10 @@ static const AVCodecDefault vaapi_encode_h264_defaults[] = { { "b", "0" }, { "bf", "2" }, { "g", "120" }, - { "i_qfactor", "1.0" }, - { "i_qoffset", "0.0" }, - { "b_qfactor", "1.2" }, - { "b_qoffset", "0.0" }, + { "i_qfactor", "1" }, + { "i_qoffset", "0" }, + { "b_qfactor", "6/5" }, + { "b_qoffset", "0" }, { NULL }, }; -- cgit v1.2.3