Commit e83d098a authored by Ludovic Fauvet's avatar Ludovic Fauvet

avcodec: fix ffmpeg version check

parent c878a14a
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#include "avcommon_compat.h"
#ifndef VLC_AVCODEC_VA_H #ifndef VLC_AVCODEC_VA_H
#define VLC_AVCODEC_VA_H 1 #define VLC_AVCODEC_VA_H 1
......
...@@ -61,7 +61,7 @@ struct vlc_va_sys_t ...@@ -61,7 +61,7 @@ struct vlc_va_sys_t
vlc_vdp_video_field_t **pool; vlc_vdp_video_field_t **pool;
}; };
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 10, 0)) #if !LIBAVCODEC_VERSION_CHECK(56, 10, 0, 19, 100)
static int av_vdpau_get_surface_parameters(AVCodecContext *avctx, static int av_vdpau_get_surface_parameters(AVCodecContext *avctx,
VdpChromaType *type, VdpChromaType *type,
uint32_t *width, uint32_t *height) uint32_t *width, uint32_t *height)
...@@ -75,7 +75,7 @@ static int av_vdpau_get_surface_parameters(AVCodecContext *avctx, ...@@ -75,7 +75,7 @@ static int av_vdpau_get_surface_parameters(AVCodecContext *avctx,
return 0; return 0;
} }
#endif #endif
#if (LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56, 9, 0)) #if !LIBAVCODEC_VERSION_CHECK(56, 9, 0, 18, 100)
# define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (0) # define AV_HWACCEL_FLAG_ALLOW_HIGH_DEPTH (0)
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment