From c54f0adacde17d69404fd23f54a2419768cbc452 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 3 Nov 2014 22:30:07 +0100 Subject: demux: unbreak build with Libav .... --- demux/packet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/demux/packet.c b/demux/packet.c index 968427dee5..1b2d985976 100644 --- a/demux/packet.c +++ b/demux/packet.c @@ -22,6 +22,8 @@ #include #include +#include "config.h" + #include "common/av_common.h" #include "common/common.h" @@ -117,6 +119,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 (!start && !end) return 0; if (!dp->avpacket) @@ -127,5 +130,6 @@ int demux_packet_set_padding(struct demux_packet *dp, int start, int end) AV_WL32(p + 0, start); AV_WL32(p + 4, end); +#endif return 0; } -- cgit v1.2.3