Commit 82e53b3c authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos Committed by Mark Thompson

lavc/vaapi_encode_h26x: Fix a crash if "." is not the decimal separator.

Fixes Debian bugs #831529, #831909, #832964.
Signed-off-by: 's avatarMark Thompson <sw@jkqxz.net>
parent d8ee02a0
...@@ -1323,10 +1323,10 @@ static const AVCodecDefault vaapi_encode_h264_defaults[] = { ...@@ -1323,10 +1323,10 @@ static const AVCodecDefault vaapi_encode_h264_defaults[] = {
{ "b", "0" }, { "b", "0" },
{ "bf", "2" }, { "bf", "2" },
{ "g", "120" }, { "g", "120" },
{ "i_qfactor", "1.0" }, { "i_qfactor", "1" },
{ "i_qoffset", "0.0" }, { "i_qoffset", "0" },
{ "b_qfactor", "1.2" }, { "b_qfactor", "6/5" },
{ "b_qoffset", "0.0" }, { "b_qoffset", "0" },
{ NULL }, { NULL },
}; };
......
...@@ -1341,10 +1341,10 @@ static const AVCodecDefault vaapi_encode_h265_defaults[] = { ...@@ -1341,10 +1341,10 @@ static const AVCodecDefault vaapi_encode_h265_defaults[] = {
{ "b", "0" }, { "b", "0" },
{ "bf", "2" }, { "bf", "2" },
{ "g", "120" }, { "g", "120" },
{ "i_qfactor", "1.0" }, { "i_qfactor", "1" },
{ "i_qoffset", "0.0" }, { "i_qoffset", "0" },
{ "b_qfactor", "1.2" }, { "b_qfactor", "6/5" },
{ "b_qoffset", "0.0" }, { "b_qoffset", "0" },
{ NULL }, { NULL },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment