add another ifdef

This commit is contained in:
twinaphex 2020-01-14 22:09:00 +01:00
parent e24934d5ea
commit ab49806a5f

View File

@ -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);