Commit c25d7334 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: fix bluray still frame output regression

parent 0dd0534c
...@@ -2097,7 +2097,10 @@ static void streamFlush( demux_sys_t *p_sys ) ...@@ -2097,7 +2097,10 @@ static void streamFlush( demux_sys_t *p_sys )
0x00, 0x00, 0x00, 0x00, /* TP extra header (ATC) */ 0x00, 0x00, 0x00, 0x00, /* TP extra header (ATC) */
0x47, 0x50, 0x11, 0x30, /* TP header */ 0x47, 0x50, 0x11, 0x30, /* TP header */
(192 - (4 + 5) - sizeof(seq_end_pes)), /* adaptation field length */ (192 - (4 + 5) - sizeof(seq_end_pes)), /* adaptation field length */
0x80, /* adaptation field: discontinuity indicator */ 0x82, /* af: discontinuity indicator + priv data */
0x0E, /* priv data size */
'V', 'L', 'C', '_',
'S', 'T', 'I', 'L', 'L', 'F', 'R', 'A', 'M', 'E',
}; };
memset(p_block->p_buffer, 0, 192); memset(p_block->p_buffer, 0, 192);
......
...@@ -2458,6 +2458,10 @@ static block_t * ProcessTSPacket( demux_t *p_demux, ts_pid_t *pid, block_t *p_pk ...@@ -2458,6 +2458,10 @@ static block_t * ProcessTSPacket( demux_t *p_demux, ts_pid_t *pid, block_t *p_pk
pid->i_pid ); pid->i_pid );
/* ignore, that's not that simple 2.4.3.5 */ /* ignore, that's not that simple 2.4.3.5 */
//p_pkt->i_flags |= BLOCK_FLAG_DISCONTINUITY; //p_pkt->i_flags |= BLOCK_FLAG_DISCONTINUITY;
/* ... or don't ignore for our Bluray still frames hack */
if(p[5] == 0x82 && !strncmp((const char *)&p[7], "VLC_STILLFRAME", 14))
p_pkt->i_flags |= BLOCK_FLAG_DISCONTINUITY;
} }
#if 0 #if 0
if( p[5]&0x40 ) if( p[5]&0x40 )
......
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