Skip to content

Commit b71b923

Browse files
committed
from_lavc_pf_priority: do not advertise HW_VDPAU
This is handled differently and may trigger unexpected decode to HW_VDPAU if gl display advertises that, eg. `uv -t testcard -c lavc:c=MJPG -d gl`. This fixes the commit 647d862 (2025-06-25) that unintentionally enabled that. The HW accel is hanndled actually separately ahd snouldn't be "enabled" in this way.
1 parent c9f52b5 commit b71b923

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libavcodec/from_lavc_vid_conv.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3173,6 +3173,10 @@ av_to_uv_convert(const av_to_uv_convert_t *convert,
31733173
int
31743174
from_lavc_pf_priority(struct pixfmt_desc internal, codec_t ugc)
31753175
{
3176+
if (codec_is_hw_accelerated(ugc)) {
3177+
return VDEC_PRIO_NA;
3178+
}
3179+
31763180
bool found_a_conversion = false;
31773181
for (unsigned i = 0; i < countof(av_to_uv_conversions); i++) {
31783182
if (av_to_uv_conversions[i].uv_codec == ugc) {

0 commit comments

Comments
 (0)