[vlc-commits] [Git][videolan/vlc][master] demux: flac: ensure es id is same on packetizer fmtout

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Tue Nov 8 21:37:08 UTC 2022



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
f74459fd by Francois Cartegnie at 2022-11-08T21:20:46+00:00
demux: flac: ensure es id is same on packetizer fmtout

- - - - -


1 changed file:

- modules/demux/flac.c


Changes:

=====================================
modules/demux/flac.c
=====================================
@@ -155,6 +155,7 @@ static int Open( vlc_object_t * p_this )
     p_sys->i_cover_score = 0;
 
     es_format_Init( &fmt, AUDIO_ES, VLC_CODEC_FLAC );
+    fmt.i_id = 0;
 
     /* We need to read and store the STREAMINFO metadata into fmt extra */
     if( ParseHeaders( p_demux, &fmt ) )
@@ -175,8 +176,7 @@ static int Open( vlc_object_t * p_this )
         vlc_meta_Set( p_sys->p_meta, vlc_meta_ArtworkURL, psz_url );
     }
 
-    p_sys->p_packetizer->fmt_in.i_id = 0;
-    p_sys->p_es = es_out_Add( p_demux->out, &p_sys->p_packetizer->fmt_in );
+    p_sys->p_es = es_out_Add( p_demux->out, &fmt );
     if( !p_sys->p_es )
         goto error;
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f74459fdee881c38dca370f4d887f28abf5a871d
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