Skip to content

Commit

Permalink
configure.ac: Build common hwacc always
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiatka committed Mar 6, 2024
1 parent 27f552c commit 00c6bc4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,6 @@ fi
# -------------------------------------------------------------------------------------------------
# libavcodec hw-accelerated decoding support
# -------------------------------------------------------------------------------------------------
lavc_hwacc_common=no
lavc_hwacc_vdpau=no
lavc_hwacc_vaapi=no

Expand Down Expand Up @@ -1601,7 +1600,6 @@ if test $lavc_hwacc_vdpau_req != no; then
LAVC_HWACC_LIBS="${LAVC_HWACC_LIBS} ${LAVC_HWACC_VDPAU_LIBS}"
HW_ACC_OBJ="${HW_ACC_OBJ} src/hwaccel_vdpau.o"
lavc_hwacc_vdpau=yes
lavc_hwacc_common=yes
fi
fi
if test $lavc_hwacc_vaapi_req != no; then
Expand All @@ -1611,17 +1609,10 @@ if test $lavc_hwacc_vaapi_req != no; then
LAVC_HWACC_LIBS="${LAVC_HWACC_LIBS} ${LAVC_HWACC_VAAPI_LIBS}"
HW_ACC_OBJ="${HW_ACC_OBJ} src/hwaccel_vaapi.o"
lavc_hwacc_vaapi=yes
lavc_hwacc_common=yes
fi
fi
if test $system = MacOSX; then
lavc_hwacc_common=yes
fi

if test $lavc_hwacc_common = yes
then
COMMON_FLAGS="$COMMON_FLAGS $LAVC_HWACC_FLAGS"
fi
COMMON_FLAGS="$COMMON_FLAGS $LAVC_HWACC_FLAGS"

ENSURE_FEATURE_PRESENT([$lavc_hwacc_vdpau_req], [$lavc_hwacc_vdpau], [Could not find hwacc vdpau dependencies])
ENSURE_FEATURE_PRESENT([$lavc_hwacc_vaapi_req], [$lavc_hwacc_vaapi], [Could not find hwacc vaapi dependencies!])
Expand Down

0 comments on commit 00c6bc4

Please sign in to comment.