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

Tristan Matthews git at videolan.org
Wed Oct 1 14:01:51 CEST 2014


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

ts: don't drop entire audio frame on discontinuity

Refs #11752

(cherry picked from commit ce6092e13fad46e834e3808e849ad259678e25b1)

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

 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 dcd1d94..8c78b5f 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2283,9 +2283,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