[vlc-commits] demux: ts: fix reset packetized flag

Francois Cartegnie git at videolan.org
Mon Jul 17 21:19:48 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jul 17 21:18:20 2017 +0200| [cc494e0082bf3377767f50e9787b3d2a0d994a2f] | committer: Francois Cartegnie

demux: ts: fix reset packetized flag

refs #18532

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

 modules/demux/mpeg/ts_psi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/demux/mpeg/ts_psi.c b/modules/demux/mpeg/ts_psi.c
index 622f4a13ee..e19426bf10 100644
--- a/modules/demux/mpeg/ts_psi.c
+++ b/modules/demux/mpeg/ts_psi.c
@@ -1385,9 +1385,6 @@ static void PIDFillFormat( demux_t *p_demux, ts_stream_t *p_pes,
         es_format_Change( fmt, UNKNOWN_ES, 0 );
         break;
     }
-
-    /* PES packets usually contain truncated frames */
-    fmt->b_packetized = false;
 }
 
 static void FillPESFromDvbpsiES( demux_t *p_demux,
@@ -1488,6 +1485,9 @@ static void FillPESFromDvbpsiES( demux_t *p_demux,
         SetupAudioExtendedDescriptors( p_demux, p_pes->p_es, p_dvbpsies );
     }
 
+    /* PES packets usually contain truncated frames */
+    p_pes->p_es->fmt.b_packetized = false;
+
     /* Set Groups / ID */
     p_pes->p_es->fmt.i_group = p_dvbpsipmt->i_program_number;
     if( p_demux->p_sys->b_es_id_pid )



More information about the vlc-commits mailing list