0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/video/decode
wm4 8d004f07a4 vd_lavc: work around libavcodec nonsense causing hwdec init failure
The libavcodec h264 decoder contains some idiotic code with unknown
purpose (no sample or explanation known that necessitates its
existence), that causes the AVCodecContext.get_format callback to be
invoked at a time when hwaccels can't be initialized. By definition, the
get_format callback is supposed to initialize hwaccels (another idiotic
thing now part of the API, but different story). This causes hwdec
initialization sometimes to fail (WolfensteinTwitch.mp4): the first
get_format callback will mark it as failed, so the second get_format
(the "proper" normal one) will not bother restoring the state, and hwdec
init fails.

While this should be fixed in libavcodec (good luck with that), it's
quite easy to workaround.
2015-10-12 21:24:25 +02:00
..
dec_video.c video: fix base for --no-correct-pts 2015-10-06 18:19:20 +02:00
dec_video.h video: fix base for --no-correct-pts 2015-10-06 18:19:20 +02:00
dxva2.c video: refactor GPU memcpy usage 2015-09-25 19:18:16 +02:00
lavc.h vd_lavc: better hwdec log output 2015-09-02 23:33:13 +02:00
rpi.c vd_lavc: remove unneeded hwdec parameters 2015-08-19 21:33:18 +02:00
vaapi.c vaapi: remove dependency on X11 2015-09-27 21:33:15 +02:00
vd_lavc.c vd_lavc: work around libavcodec nonsense causing hwdec init failure 2015-10-12 21:24:25 +02:00
vd.h video: remove codec delay estimation 2015-10-03 22:10:44 +02:00
vdpau.c vd_lavc: remove unneeded hwdec parameters 2015-08-19 21:33:18 +02:00
videotoolbox.c vd_lavc: remove unneeded hwdec parameters 2015-08-19 21:33:18 +02:00