[vlc-commits] ts: don't drop entire audio frame on discontinuity

Tristan Matthews git at videolan.org
Wed Oct 1 14:00:03 CEST 2014


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Sep 29 23:34:09 2014 -0400| [ce6092e13fad46e834e3808e849ad259678e25b1] | committer: Tristan Matthews

ts: don't drop entire audio frame on discontinuity

Refs #11752

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

 modules/demux/ts.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 10c08fa..641c785 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2457,9 +2457,10 @@ static bool GatherData( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
                       i_cc, ( pid->i_cc + 1 )&0x0f, pid->i_pid );
 
             pid->i_cc = i_cc;
-            if( pid->es->p_data && pid->es->fmt.i_cat != VIDEO_ES )
+            if( pid->es->p_data && pid->es->fmt.i_cat != VIDEO_ES &&
+                pid->es->fmt.i_cat != AUDIO_ES )
             {
-                /* Small video artifacts are usually better than
+                /* Small audio/video artifacts are usually better than
                  * dropping full frames */
                 pid->es->p_data->i_flags |= BLOCK_FLAG_CORRUPTED;
             }



More information about the vlc-commits mailing list