[vlc-commits] vout: decklink: ensure nosignal picture has same format

Francois Cartegnie git at videolan.org
Mon Nov 28 17:28:51 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 28 17:25:05 2016 +0100| [3a715b7dd556a0a8ec992a7ef83e1ee623d0cb68] | committer: Francois Cartegnie

vout: decklink: ensure nosignal picture has same format

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

 modules/video_output/decklink.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp
index 1435afe..05b8b4b 100644
--- a/modules/video_output/decklink.cpp
+++ b/modules/video_output/decklink.cpp
@@ -394,6 +394,11 @@ static picture_t * CreateNoSignalPicture(vlc_object_t *p_this, const video_forma
         video_format_Init(&dummy, 0);
         video_format_Copy(&dummy, fmt);
         p_pic = image_Convert(img, png, &in, &dummy);
+        if(!video_format_IsSimilar(&dummy, fmt))
+        {
+            picture_Release(p_pic);
+            p_pic = NULL;
+        }
         picture_Release(png);
     }
     image_HandlerDelete(img);



More information about the vlc-commits mailing list