diff options
author | wm4 <wm4@nowhere> | 2017-02-14 13:30:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-14 13:30:48 +0100 |
commit | 3e474f4654236beec584d306cfb3e8563f677516 (patch) | |
tree | dc3bc26a562d985b1d2ae8311c5bacb57300ca09 /video | |
parent | 9a4593298405bf81d8937fbc462101915f270a21 (diff) | |
download | mpv-3e474f4654236beec584d306cfb3e8563f677516.tar.bz2 mpv-3e474f4654236beec584d306cfb3e8563f677516.tar.xz |
vo_opengl: hwdec_vaegl: fix potentially undefined memory access
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/hwdec_vaegl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec_vaegl.c b/video/out/opengl/hwdec_vaegl.c index a66ad7f390..019560e0cd 100644 --- a/video/out/opengl/hwdec_vaegl.c +++ b/video/out/opengl/hwdec_vaegl.c @@ -428,12 +428,12 @@ static void determine_working_formats(struct gl_hwdec *hw) } for (int n = 0; fc->valid_sw_formats[n] != AV_PIX_FMT_NONE; n++) { AVBufferRef *fref = NULL; + struct mp_image *s = NULL; + AVFrame *frame = NULL; fref = av_hwframe_ctx_alloc(p->ctx->av_device_ref); if (!fref) goto err; AVHWFramesContext *fctx = (void *)fref->data; - struct mp_image *s = NULL; - AVFrame *frame = NULL; fctx->format = AV_PIX_FMT_VAAPI; fctx->sw_format = fc->valid_sw_formats[n]; fctx->width = 128; |