Skip to content

Commit bfdcab5

Browse files
committed
GPU: don't pre-allocate memory
1 parent 01c202b commit bfdcab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/gpu/gpu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ static void printGPUResult(FFGPUOptions* options, uint8_t index, const FFGPUResu
2626
{
2727
ffPrintLogoAndKey(FF_GPU_MODULE_NAME, index, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT);
2828

29-
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreateA(gpu->vendor.length + 1 + gpu->name.length);
29+
FF_STRBUF_AUTO_DESTROY output = ffStrbufCreate();
3030

3131
if(gpu->vendor.length > 0 && !ffStrbufStartsWith(&gpu->name, &gpu->vendor))
3232
{

0 commit comments

Comments
 (0)