[vlc-devel] [PATCH 11/12] avcodec: signal that decoding is hardware-accelerated
Thomas Guillem
thomas at gllm.fr
Thu Jun 9 11:52:03 CEST 2016
---
modules/codec/avcodec/video.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 0e854dd..1e6b3df 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -1279,6 +1279,9 @@ static enum PixelFormat ffmpeg_GetFormat( AVCodecContext *p_context,
p_sys->p_va = va;
p_sys->pix_fmt = hwfmt;
p_context->draw_horiz_band = NULL;
+
+ decoder_AddState(p_dec, DECODER_STATE_HW);
+
return pi_fmt[i];
}
--
2.8.1
More information about the vlc-devel
mailing list