Commit dd82ae40 authored by Tristan Matthews's avatar Tristan Matthews Committed by Tristan Matthews

ts: don't drop entire audio frame on discontinuity

Refs #11752

(cherry picked from commit ce6092e13fad46e834e3808e849ad259678e25b1)
parent 37a84eb2
...@@ -2283,9 +2283,10 @@ static bool GatherData( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk ) ...@@ -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 ); i_cc, ( pid->i_cc + 1 )&0x0f, pid->i_pid );
pid->i_cc = i_cc; 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 */ * dropping full frames */
pid->es->p_data->i_flags |= BLOCK_FLAG_CORRUPTED; pid->es->p_data->i_flags |= BLOCK_FLAG_CORRUPTED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment