This was added in libva 2.1.0 (VAAPI 1.1.0). Use AVCodecContext.qmax, matching the existing behaviour for qmin, and clean up the defaults so that we only pass min/max when explicitly set.
Showing the changes to libavcodec/vaapi_encode_mpeg2.c (1 of 7 files). Show all
Unified · Split
| @@ -672,6 +672,8 @@ static const AVCodecDefault vaapi_encode_mpeg2_defaults[] = { · 671 unmodified lines | ||
| 672 | 672 | { "b_qfactor", "6/5" }, |
| 673 | 673 | { "b_qoffset", "0" }, |
| 674 | 674 | { "global_quality", "10" }, |
| 675 | + { "qmin", "-1" }, | |
| 676 | + { "qmax", "-1" }, | |
| 675 | 677 | { NULL }, |
| 676 | 678 | }; |
| 677 | 679 | |