mirror of https://github.com/mpv-player/mpv
ca29a5aa9b
If the codec uses AV_CODEC_HW_CONFIG_METHOD_INTERNAL, and we're using the -copy method, then don't request the native pix_fmt. It might not have a AVFrame.hw_frames_ctx set, and we couldn't read back at all. On top of that, most of those decoders probably don't provide read-back when using such opaque formats anyway, while providing separate decoding modes to decode to RAM. |
||
---|---|---|
.. | ||
dec_video.c | ||
dec_video.h | ||
vd.h | ||
vd_lavc.c |