1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-19 13:51:14 +00:00

demux_lavf: don't accidentally enable edit list crap on Libav

You really don't get a break from all the multiple bullshit.
This commit is contained in:
wm4 2016-10-18 19:14:15 +02:00
parent b86a2316df
commit a2fa0d0b68

View File

@ -938,7 +938,8 @@ static int demux_lavf_fill_buffer(demuxer_t *demux)
#endif
dp->pos = pkt->pos;
dp->keyframe = pkt->flags & AV_PKT_FLAG_KEY;
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 50, 100)
#if LIBAVFORMAT_VERSION_MICRO >= 100 && \
LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(57, 50, 100)
if (pkt->flags & AV_PKT_FLAG_DISCARD)
MP_ERR(demux, "Edit lists are not correctly supported (FFmpeg issue).\n");
#endif