mirror of https://github.com/mpv-player/mpv
ccce58d6d6
Apparently the "right" place to initialize the hardware decoder is in the libavcodec get_format callback. This doesn't change vda.c and vdpau_old.c, because I don't have OSX, and vdpau_old.c is probably going to be removed soon (if Libav ever manages to release Libav 10). So for now the init_decoder callback added with this commit is optional. This also means vdpau.c and vaapi.c don't have to manage and check the image parameters anymore. This change is probably needed for when libavcodec VDA supports gets a new iteration of its API. |
||
---|---|---|
.. | ||
dec_video.c | ||
dec_video.h | ||
lavc.h | ||
lavc_dr1.c | ||
vaapi.c | ||
vd.h | ||
vd_lavc.c | ||
vda.c | ||
vdpau.c | ||
vdpau_old.c |