[vlc-commits] [Git][videolan/vlc][master] subpicture: initialize the region picture with the region format

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Mar 12 14:37:25 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
33dd66bd by Steve Lhomme at 2024-03-12T13:53:10+00:00
subpicture: initialize the region picture with the region format

The region format has its own copy of the palette, whereas the source may have a temporary pointer

- - - - -


1 changed file:

- src/misc/subpicture.c


Changes:

=====================================
src/misc/subpicture.c
=====================================
@@ -241,7 +241,7 @@ subpicture_region_t *subpicture_region_New( const video_format_t *p_fmt )
         return NULL;
 
     video_format_Copy( &p_region->fmt, p_fmt );
-    p_region->p_picture = picture_NewFromFormat( p_fmt );
+    p_region->p_picture = picture_NewFromFormat( &p_region->fmt );
     if( !p_region->p_picture )
     {
         video_format_Clean( &p_region->fmt );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/33dd66bd7fea507bdfcfb0c617b3e61b3c323b6d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/33dd66bd7fea507bdfcfb0c617b3e61b3c323b6d
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list