mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
build: replace some FFmpeg API checks with version checks
The FFmpeg versions we support all have the APIs we were checking for. Only Libav missed them. Simplify this by explicitly checking for FFmpeg in the code, instead of trying to detect the presence of the API.
This commit is contained in:
@@ -132,7 +132,7 @@ struct demux_packet *demux_copy_packet(struct demux_packet *dp)
|
||||
|
||||
int demux_packet_set_padding(struct demux_packet *dp, int start, int end)
|
||||
{
|
||||
#if HAVE_AVFRAME_SKIP_SAMPLES
|
||||
#if LIBAVCODEC_VERSION_MICRO >= 100
|
||||
if (!start && !end)
|
||||
return 0;
|
||||
if (!dp->avpacket)
|
||||
|
||||
Reference in New Issue
Block a user