deps/media-playback: Use new ffmpeg constants
This commit is contained in:
parent
9f046dc52b
commit
c571ba469b
4
deps/media-playback/media-playback/decode.c
vendored
4
deps/media-playback/media-playback/decode.c
vendored
@ -142,8 +142,8 @@ bool mp_decode_init(mp_media_t *m, enum AVMediaType type, bool hw)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (d->codec->capabilities & CODEC_CAP_TRUNCATED)
|
if (d->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
|
||||||
d->decoder->flags |= CODEC_FLAG_TRUNCATED;
|
d->decoder->flags |= AV_CODEC_FLAG_TRUNCATED;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user