[vlc-commits] deinterlace: only set the next on the previous picture if there's a next

Steve Lhomme git at videolan.org
Wed Sep 23 16:17:55 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Sep 17 14:33:39 2020 +0200| [1d1456feedd57e7bec97411fabd1df6643fb3f33] | committer: Steve Lhomme

deinterlace: only set the next on the previous picture if there's a next

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

 modules/video_filter/deinterlace/common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_filter/deinterlace/common.c b/modules/video_filter/deinterlace/common.c
index f0bc3e830e..1265c888a4 100644
--- a/modules/video_filter/deinterlace/common.c
+++ b/modules/video_filter/deinterlace/common.c
@@ -233,10 +233,10 @@ picture_t *DoDeinterlacing( filter_t *p_filter,
         /* Allocate output frames. */
         for( int i = 1; i < i_double_rate_alloc_end ; ++i )
         {
-            p_dst[i-1]->p_next =
             p_dst[i]           = AllocPicture( p_filter );
             if( p_dst[i] )
             {
+                p_dst[i-1]->p_next = p_dst[i];
                 picture_CopyProperties( p_dst[i], p_pic );
             }
             else



More information about the vlc-commits mailing list