diff options
author | wm4 <wm4@nowhere> | 2016-07-15 12:01:30 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-07-15 13:04:17 +0200 |
commit | ae94f329a9b1296bf740e85c888910f8483e21cd (patch) | |
tree | e5afe72935c8e2d735be01ab87472c4e8bb5c563 /video/out/opengl/hwdec_vaglx.c | |
parent | 85488f68928ed40020e545b736118e0273e06cd1 (diff) | |
download | mpv-ae94f329a9b1296bf740e85c888910f8483e21cd.tar.bz2 mpv-ae94f329a9b1296bf740e85c888910f8483e21cd.tar.xz |
vo_opengl: hwdec: reset hw_subfmt field
In theory, mp_image_params with hw_subfmt set to non-0 if imgfmt is not
a hwaccel format is invalid. (It worked fine because nothing checks this
yet.)
Diffstat (limited to 'video/out/opengl/hwdec_vaglx.c')
-rw-r--r-- | video/out/opengl/hwdec_vaglx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/hwdec_vaglx.c b/video/out/opengl/hwdec_vaglx.c index 0400604067..ac817d79c4 100644 --- a/video/out/opengl/hwdec_vaglx.c +++ b/video/out/opengl/hwdec_vaglx.c @@ -167,6 +167,7 @@ static int reinit(struct gl_hwdec *hw, struct mp_image_params *params) gl->BindTexture(GL_TEXTURE_2D, 0); params->imgfmt = IMGFMT_RGB0; + params->hw_subfmt = 0; return 0; } |