[vlc-commits] picture: fix copy-paste error
Rémi Denis-Courmont
git at videolan.org
Thu Mar 1 17:12:14 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Mar 1 18:11:41 2018 +0200| [a96944e1c076e643b4841f52f8112790d780f33d] | committer: Rémi Denis-Courmont
picture: fix copy-paste error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a96944e1c076e643b4841f52f8112790d780f33d
---
src/misc/picture.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/misc/picture.c b/src/misc/picture.c
index 69e7c92ad6..7506e47725 100644
--- a/src/misc/picture.c
+++ b/src/misc/picture.c
@@ -254,7 +254,7 @@ picture_t *picture_NewFromFormat(const video_format_t *restrict fmt)
picture_t *pic = &priv->picture;
if (pic->i_planes == 0)
- return NULL;
+ return pic;
/* Calculate how big the new image should be */
size_t plane_sizes[PICTURE_PLANE_MAX];
More information about the vlc-commits
mailing list