mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 17:58:27 +00:00
demux: unbreak build with Libav
....
This commit is contained in:
parent
5438a8b32e
commit
c54f0adacd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user