From c5cc8aaf259a8dc88790ff5ff1a611521c079553 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Fri, 13 Oct 2017 12:59:14 +0200 Subject: [PATCH] deinterlace: show the interlaced picture rather than nothing in case of error Only in release builds. Signed-off-by: Jean-Baptiste Kempf --- modules/video_filter/deinterlace/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/video_filter/deinterlace/common.c b/modules/video_filter/deinterlace/common.c index ea9c6af464..1791190ff8 100644 --- a/modules/video_filter/deinterlace/common.c +++ b/modules/video_filter/deinterlace/common.c @@ -351,6 +351,10 @@ drop: if( p_dst[i] ) picture_Release( p_dst[i] ); } +#ifndef NDEBUG picture_Release( p_pic ); return NULL; +#else + return p_pic; +#endif } -- 2.11.4.GIT