]> git.sesse.net Git - vlc/commitdiff
ts: don't drop entire audio frame on discontinuity
authorTristan Matthews <tmatth@videolan.org>
Tue, 30 Sep 2014 03:34:09 +0000 (23:34 -0400)
committerTristan Matthews <tmatth@videolan.org>
Wed, 1 Oct 2014 11:58:50 +0000 (07:58 -0400)
Refs #11752

modules/demux/ts.c

index 10c08faa38747dd463529838e31fb11faeb95c13..641c785323e5b21893a5fcbc1297f3f4cebd044c 100644 (file)
@@ -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;
             }