diff options
author | wm4 <wm4@nowhere> | 2017-12-02 02:45:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-12-02 02:45:49 +0100 |
commit | 8b3dbab19eafee2da3685bb0a8550db448fad757 (patch) | |
tree | 34ed398533bfe209d7b723ee48030b9c3d2f44f8 /video/decode/vd_lavc.c | |
parent | 3c07db034582438a55972e9c610cab683577ac56 (diff) | |
download | mpv-8b3dbab19eafee2da3685bb0a8550db448fad757.tar.bz2 mpv-8b3dbab19eafee2da3685bb0a8550db448fad757.tar.xz |
vd_lavc: simpler way to check for opque hw frame
The ->fmt shit is something I'd like to phase out.
Diffstat (limited to 'video/decode/vd_lavc.c')
-rw-r--r-- | video/decode/vd_lavc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index b9732c1fc0..5e9b30d453 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -1091,9 +1091,7 @@ static bool receive_frame(struct dec_video *vd, struct mp_image **out_image) if (!res) return progress; - if (ctx->use_hwdec && ctx->hwdec.copying && - (res->fmt.flags & MP_IMGFLAG_HWACCEL)) - { + if (ctx->use_hwdec && ctx->hwdec.copying && res->hwctx) { struct mp_image *sw = mp_image_hw_download(res, ctx->hwdec_swpool); mp_image_unrefp(&res); res = sw; |