]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ts.c: small video artefacts are usually better than dropping whole...
authorGildas Bazin <gbazin@videolan.org>
Wed, 8 Sep 2004 15:25:56 +0000 (15:25 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 8 Sep 2004 15:25:56 +0000 (15:25 +0000)
modules/demux/ts.c

index 0bb5b5483fc316ca3c599abb0bbb7252c71706e6..3bdc403f8278dce3611702fcfc47089902947549 100644 (file)
@@ -1404,8 +1404,10 @@ static vlc_bool_t GatherPES( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
 
             pid->i_cc = i_cc;
 
-            if( pid->es->p_pes )
+            if( pid->es->p_pes && pid->es->fmt.i_cat != VIDEO_ES )
             {
+                /* Small video artifacts are usually better then
+                 * dropping full frames */
                 pid->es->p_pes->i_flags |= BLOCK_FLAG_DISCONTINUITY;
             }
         }