summaryrefslogtreecommitdiffstats
path: root/demux/packet.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-01-24 08:11:42 +0100
committerwm4 <wm4@nowhere>2017-01-24 08:11:42 +0100
commitb14fac9afa79e44d8b0323c6ddbef1557cdd0d8d (patch)
tree676e8e9ef45690491d827b553ec8cc29f49e84f3 /demux/packet.c
parent6be58df8d14922bc1f4252f9f69ca9c0d74c331a (diff)
downloadmpv-b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d.tar.bz2
mpv-b14fac9afa79e44d8b0323c6ddbef1557cdd0d8d.tar.xz
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.
Diffstat (limited to 'demux/packet.c')
-rw-r--r--demux/packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/demux/packet.c b/demux/packet.c
index 32fabc4f78..b33d5b618e 100644
--- a/demux/packet.c
+++ b/demux/packet.c
@@ -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)