diff options
| author | 2026-07-10 14:04:29 -0400 | |
|---|---|---|
| committer | 2026-07-10 14:04:29 -0400 | |
| commit | 566c022572bbff8bb7ff105b9adbe74500b2c716 (patch) | |
| tree | 6cc0942bdfcdcbf3b1df52c8436d1b0ea5f88c52 /src/codec/ffmpeg/decoder.c | |
| parent | c60363d4652ff60826b29a2e75f53a78df0f44cb (diff) | |
| download | camu-566c022572bbff8bb7ff105b9adbe74500b2c716.tar.gz camu-566c022572bbff8bb7ff105b9adbe74500b2c716.tar.bz2 camu-566c022572bbff8bb7ff105b9adbe74500b2c716.zip | |
Build fixes, get LTO+Os working on Windows
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec/ffmpeg/decoder.c')
| -rw-r--r-- | src/codec/ffmpeg/decoder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/codec/ffmpeg/decoder.c b/src/codec/ffmpeg/decoder.c index 3da0027..d24677a 100644 --- a/src/codec/ffmpeg/decoder.c +++ b/src/codec/ffmpeg/decoder.c @@ -28,7 +28,7 @@ static const char *hwdevices[] = { static void log_codec_name(const AVCodec *codec, const char *hwdevice_name) { - const char *name = codec->long_name ? codec->long_name : codec->name; + const char *name = camu_ff_longest_name(codec); if (hwdevice_name) { log_info("Codec: %s (via %s hwaccel).", name, hwdevice_name); } else { @@ -141,6 +141,8 @@ static s32 init_hwdevice_context(struct camu_ff_decoder *av, AVCodecContext *con #ifdef CAMU_HUGE_VIDEO_BUFFER // Note that context->extra_hw_frames has the ability to cause corruption. context->extra_hw_frames = 48; +#else + context->extra_hw_frames = 4; #endif return ret; |