Commit d9965025 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: add some more pvr4000 header checks

parent 436f7e09
...@@ -502,6 +502,7 @@ static int DetectPVRHeadersAndHeaderSize( demux_t *p_demux, int *pi_header_size, ...@@ -502,6 +502,7 @@ static int DetectPVRHeadersAndHeaderSize( demux_t *p_demux, int *pi_header_size,
return -1; return -1;
if( memcmp( p_peek, "TFrc", 4 ) == 0 && if( memcmp( p_peek, "TFrc", 4 ) == 0 &&
p_peek[6] == 0 && memcmp( &p_peek[53], "\x80\x00\x00", 4 ) == 0 &&
stream_Peek( p_demux->s, &p_peek, TOPFIELD_HEADER_SIZE + TS_PACKET_SIZE_MAX ) stream_Peek( p_demux->s, &p_peek, TOPFIELD_HEADER_SIZE + TS_PACKET_SIZE_MAX )
== TOPFIELD_HEADER_SIZE + TS_PACKET_SIZE_MAX ) == TOPFIELD_HEADER_SIZE + TS_PACKET_SIZE_MAX )
{ {
......
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