[vlc-commits] SCTE-27: simplify fmt codec definition and avoid crash
    Jean-Baptiste Kempf 
    git at videolan.org
       
    Fri Jun 16 16:55:46 CEST 2017
    
    
  
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Jun 16 16:25:50 2017 +0200| [f976a4eb97cd0e032b9e125a3085aa6f7d3db5fe] | committer: Jean-Baptiste Kempf
SCTE-27: simplify fmt codec definition and avoid crash
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f976a4eb97cd0e032b9e125a3085aa6f7d3db5fe
---
 modules/codec/scte27.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/modules/codec/scte27.c b/modules/codec/scte27.c
index fa15cf3f48..3231f6316e 100644
--- a/modules/codec/scte27.c
+++ b/modules/codec/scte27.c
@@ -503,8 +503,7 @@ static int Open(vlc_object_t *object)
     sys->segment_buffer = NULL;
 
     dec->pf_decode = Decode;
-    es_format_Init(&dec->fmt_out, SPU_ES, VLC_CODEC_SPU);
-    dec->fmt_out.video.i_chroma = VLC_CODEC_YUVP;
+    es_format_Init(&dec->fmt_out, SPU_ES, VLC_CODEC_YUVP);
 
     return VLC_SUCCESS;
 }
    
    
More information about the vlc-commits
mailing list