[vlc-devel] commit: Added support for old revision of SCT20 closed caption. ( Laurent Aimar )

git version control git at videolan.org
Thu Jun 4 21:13:10 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Thu Jun  4 21:08:14 2009 +0200| [f6dba4e64ab3230af2f4bf95ef16984d93279599] | committer: Laurent Aimar 

Added support for old revision of SCT20 closed caption.

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

 modules/codec/cc.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/codec/cc.h b/modules/codec/cc.h
index 80ee56b..cb3740f 100644
--- a/modules/codec/cc.h
+++ b/modules/codec/cc.h
@@ -86,6 +86,7 @@ static inline void cc_Extract( cc_data_t *c, const uint8_t *p_src, int i_src )
     static const uint8_t p_cc_replaytv5a[2] = { 0x99, 0x02 };
     static const uint8_t p_cc_replaytv5b[2] = { 0xaa, 0x02 };
     static const uint8_t p_cc_scte20[2] = { 0x03, 0x81 };
+    static const uint8_t p_cc_scte20_old[2] = { 0x03, 0x01 };
     //static const uint8_t p_afd_start[4] = { 0x44, 0x54, 0x47, 0x31 };
 
     if( i_src < 4 )
@@ -190,7 +191,8 @@ static inline void cc_Extract( cc_data_t *c, const uint8_t *p_src, int i_src )
         }
         c->b_reorder = false;
     }
-    else if( !memcmp( p_cc_scte20, p_src, 2 ) && i_src > 2 )
+    else if( ( !memcmp( p_cc_scte20, p_src, 2 ) ||
+               !memcmp( p_cc_scte20_old, p_src, 2 ) ) && i_src > 2 )
     {
         /* SCTE-20 CC */
         bs_t s;




More information about the vlc-devel mailing list