vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Jan 26 
15:13:09 2015 +0100| [d99650254d836984c9f58f0c13d607a89b779f2e] | committer: 
Francois Cartegnie

demux: ts: add some more pvr4000 header checks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d99650254d836984c9f58f0c13d607a89b779f2e
---

 modules/demux/ts.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 7f86b03..670bc7a 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -502,6 +502,7 @@ static int DetectPVRHeadersAndHeaderSize( demux_t *p_demux, 
int *pi_header_size,
         return -1;
 
     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 )
             == TOPFIELD_HEADER_SIZE + TS_PACKET_SIZE_MAX )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to