demux: unbreak build with Libav

....
This commit is contained in:
wm4 2014-11-03 22:30:07 +01:00
parent 5438a8b32e
commit c54f0adacd
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}