summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/packet.c4
1 files changed, 4 insertions, 0 deletions
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 <libavcodec/avcodec.h>
#include <libavutil/intreadwrite.h>
+#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;
}