[vlc-commits] VideoToolbox: fix wrong function type check

Jean-Baptiste Kempf git at videolan.org
Mon Nov 21 17:50:15 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 21 17:48:41 2016 +0100| [2cdf4fe167d563c12da9695a95ae2d469567f2c1] | committer: Jean-Baptiste Kempf

VideoToolbox: fix wrong function type check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2cdf4fe167d563c12da9695a95ae2d469567f2c1
---

 modules/codec/videotoolbox.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 92cd82f..54a42ba 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -1125,7 +1125,7 @@ skip:
 
         if (imageBuffer != NULL) {
             if (CVPixelBufferGetDataSize(imageBuffer) > 0) {
-                if (decoder_UpdateVideoFormat(p_dec) == NULL)
+                if (decoder_UpdateVideoFormat(p_dec))
                     return NULL;
                 p_pic = decoder_NewPicture(p_dec);
 



More information about the vlc-commits mailing list