[vlc-commits] packetizer: h26x: packetized output is

Francois Cartegnie git at videolan.org
Wed Dec 16 16:30:35 CET 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 16 15:13:31 2015 +0100| [9cf9ebaffd19a535d032ff0ad81d0f385b4520b2] | committer: Francois Cartegnie

packetizer: h26x: packetized output is

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

 modules/demux/mpeg/hevc.c |    2 --
 modules/packetizer/h264.c |    1 +
 modules/packetizer/hevc.c |    1 +
 3 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mpeg/hevc.c b/modules/demux/mpeg/hevc.c
index 33f75db..8063d95 100644
--- a/modules/demux/mpeg/hevc.c
+++ b/modules/demux/mpeg/hevc.c
@@ -137,9 +137,7 @@ static int Open( vlc_object_t * p_this )
         return VLC_EGENERIC;
     }
 
-    p_sys->p_packetizer->fmt_out.b_packetized = true;
     p_sys->p_es = es_out_Add( p_demux->out, &p_sys->p_packetizer->fmt_out);
-
     if( !p_sys->p_es )
     {
         demux_PacketizerDestroy( p_sys->p_packetizer );
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index c6777e0..de0a317 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -238,6 +238,7 @@ static int Open( vlc_object_t *p_this )
     /* Setup properties */
     es_format_Copy( &p_dec->fmt_out, &p_dec->fmt_in );
     p_dec->fmt_out.i_codec = VLC_CODEC_H264;
+    p_dec->fmt_out.b_packetized = true;
 
     if( b_avc )
     {
diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index 760459d..a58a92f 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -99,6 +99,7 @@ static int Open(vlc_object_t *p_this)
 
     /* Copy properties */
     es_format_Copy(&p_dec->fmt_out, &p_dec->fmt_in);
+    p_dec->fmt_out.b_packetized = true;
 
     /* Set callbacks */
     const uint8_t *p_extra = p_dec->fmt_in.p_extra;



More information about the vlc-commits mailing list