vlc | branch: master | Ilkka Ollakka <[email protected]> | Sat Sep 24 16:43:25 
2016 +0300| [0d1b130b4f77a07c400a497b30f15f397e883be8] | committer: Ilkka 
Ollakka

mpeg: ts: only place pat/pmt/etc with use-keyframes on videoblocks

for example avcodec encoder marks all audio blocks as type_i and we don't
want split for example livehttp output based on those.

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

 modules/mux/mpeg/ts.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/mux/mpeg/ts.c b/modules/mux/mpeg/ts.c
index 402ef57..5967b1b 100644
--- a/modules/mux/mpeg/ts.c
+++ b/modules/mux/mpeg/ts.c
@@ -1548,7 +1548,9 @@ static bool MuxStreams(sout_mux_t *p_mux )
         /* Write PAT/PMT before every keyframe if use-key-frames is enabled,
          * this helps to do segmenting with livehttp-output so it can cut 
segment
          * and start new one with pat,pmt,keyframe*/
-        if( ( p_sys->b_use_key_frames ) && ( p_ts->i_flags & BLOCK_FLAG_TYPE_I 
) )
+        if( ( p_sys->b_use_key_frames ) &&
+            ( p_input->p_fmt->i_cat == VIDEO_ES ) &&
+            ( p_ts->i_flags & BLOCK_FLAG_TYPE_I ) )
         {
             if( likely( !pat_was_previous ) )
             {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to