diff options
author | wm4 <wm4@nowhere> | 2014-11-03 22:30:07 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-03 22:30:07 +0100 |
commit | c54f0adacde17d69404fd23f54a2419768cbc452 (patch) | |
tree | 82743aa2316b9d4ce1fd7739b2b6100cebd8fff8 /demux | |
parent | 5438a8b32e197e2e2522f6cd9dcbe3b8a99e9303 (diff) | |
download | mpv-c54f0adacde17d69404fd23f54a2419768cbc452.tar.bz2 mpv-c54f0adacde17d69404fd23f54a2419768cbc452.tar.xz |
demux: unbreak build with Libav
....
Diffstat (limited to 'demux')
-rw-r--r-- | demux/packet.c | 4 |
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; } |