mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 02:50:11 +01:00
nvenc: Fix the preset mapping list
The map is a sparse array and does not need a empty element to terminate it. The empty element is stored after the last one inserted in the list, overwriting whichever element was next with zeros. Bug-Id: 1029 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
@@ -495,8 +495,7 @@ static int nvenc_map_preset(NVENCContext *ctx)
|
|||||||
PRESET(LOSSLESS_HP, NVENC_LOSSLESS),
|
PRESET(LOSSLESS_HP, NVENC_LOSSLESS),
|
||||||
PRESET_ALIAS(SLOW, HQ, NVENC_TWO_PASSES),
|
PRESET_ALIAS(SLOW, HQ, NVENC_TWO_PASSES),
|
||||||
PRESET_ALIAS(MEDIUM, HQ, NVENC_ONE_PASS),
|
PRESET_ALIAS(MEDIUM, HQ, NVENC_ONE_PASS),
|
||||||
PRESET_ALIAS(FAST, HP, NVENC_ONE_PASS),
|
PRESET_ALIAS(FAST, HP, NVENC_ONE_PASS)
|
||||||
{ { 0 } }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GUIDTuple *t = &presets[ctx->preset];
|
GUIDTuple *t = &presets[ctx->preset];
|
||||||
|
|||||||
Reference in New Issue
Block a user