1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-21 18:57:35 +00:00

demux_lavf: don't check for error when setting "keepside" flag

This flag doesn't exist on Libav (because they never do this insane
packet merging stuff), so this would print unnecessary warnings there.
This commit is contained in:
wm4 2014-02-06 14:05:04 +01:00
parent 30ffbc65bd
commit 47bc87208b

View File

@ -562,10 +562,7 @@ static int demux_open_lavf(demuxer_t *demuxer, enum demux_check check)
avfc->flags |= AVFMT_FLAG_IGNIDX;
/* Keep side data as side data instead of mashing it into the packet
* stream. */
if (av_opt_set(avfc, "fflags", "+keepside", 0) < 0) {
MP_WARN(demuxer, "demux_lavf, couldn't set option keepdata; "
"in-stream metadata updates will be ignored\n");
}
av_opt_set(avfc, "fflags", "+keepside", 0);
if (lavfdopts->probesize) {
if (av_opt_set_int(avfc, "probesize", lavfdopts->probesize, 0) < 0)