Projects
Essentials
A_tw-ffmpeg-7
11013-avcodec-decode-clean-up-if-get_hw_frames_...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 11013-avcodec-decode-clean-up-if-get_hw_frames_parameters-.patch of Package A_tw-ffmpeg-7
From: François Cartegnie <fcvlcdev@free.fr> Date: Mon, 13 May 2024 11:37:27 +0000 Subject: avcodec/decode: clean-up if get_hw_frames_parameters fails https://trac.ffmpeg.org/ticket/11013 https://code.videolan.org/videolan/vlc/-/issues/28811 Fixes the following assert: [00007f1df83d17e0] vaapi generic error: avcodec_get_hw_frames_parameters failed: -22 Assertion p_dst->hwaccel_threadsafe || (!dst->hwaccel && !dst->internal->hwaccel_priv_data) failed at libavcodec/pthread_frame.c:349 Reproduced from VLC with VAAPI, when fallbacking from hw to sw. --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -344,6 +344,10 @@ FF_ENABLE_DEPRECATION_WARNINGS return err; } + // hwaccel could have failed init due to some params + if(!dst->hwaccel && dst->internal->hwaccel_priv_data) + ff_hwaccel_uninit(dst); + // reset dst hwaccel state if needed av_assert0(p_dst->hwaccel_threadsafe || (!dst->hwaccel && !dst->internal->hwaccel_priv_data));
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.