summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-04-21 01:38:21 +0300
committerJan Ekström <jeebjp@gmail.com>2018-04-21 01:38:21 +0300
commit65f08253158ba9cb4c164a6cfd6da39b39d38e55 (patch)
tree95df3df84444e6f573c7a14489c81c03fd212930
parent6435d9ae7f3afe88ad2dbaad378335185acecd38 (diff)
downloadmpv-65f08253158ba9cb4c164a6cfd6da39b39d38e55.tar.bz2
mpv-65f08253158ba9cb4c164a6cfd6da39b39d38e55.tar.xz
mp_image: fixup a simple 10L in ref_buffer
We didn't want to set the pointer to zero, but the value that the pointer was pointing towards.
-rw-r--r--video/mp_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 8aa3aa025c..a1efe7d405 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -305,7 +305,7 @@ static void ref_buffer(bool *ok, AVBufferRef **dst)
if (*dst) {
*dst = av_buffer_ref(*dst);
if (!*dst)
- ok = false;
+ *ok = false;
}
}