From ab49806a5f8d3215080ace7346a2a2297b40408f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 14 Jan 2020 22:09:00 +0100 Subject: [PATCH] add another ifdef --- cores/libretro-ffmpeg/ffmpeg_core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cores/libretro-ffmpeg/ffmpeg_core.c b/cores/libretro-ffmpeg/ffmpeg_core.c index 0c1628a1b1..d9d28d9ecd 100644 --- a/cores/libretro-ffmpeg/ffmpeg_core.c +++ b/cores/libretro-ffmpeg/ffmpeg_core.c @@ -1754,8 +1754,10 @@ static void decode_thread(void *data) for (i = 0; (int)i < audio_streams_num; i++) swr_free(&swr[i]); +#if ENABLE_HW_ACCEL if (vctx && vctx->hw_device_ctx) av_buffer_unref(&vctx->hw_device_ctx); +#endif packet_buffer_destroy(audio_packet_buffer); packet_buffer_destroy(video_packet_buffer);