[vlc-commits] codec: cc: decode provided CEA708 channel

Francois Cartegnie git at videolan.org
Wed Feb 12 11:31:12 CET 2020


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 11 20:00:02 2020 +0100| [86fd85521020554a9c32f6ed244a2aa3785cdac9] | committer: Francois Cartegnie

codec: cc: decode provided CEA708 channel

refs #23691

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

 modules/codec/cc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 1a0c8e568a..9a9269b42c 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -243,7 +243,7 @@ static void DTVCC_ServiceData_Handler( void *priv, uint8_t i_sid, vlc_tick_t i_t
     decoder_t *p_dec = priv;
     decoder_sys_t *p_sys = p_dec->p_sys;
     //msg_Err( p_dec, "DTVCC_ServiceData_Handler sid %d bytes %ld", i_sid, i_data );
-    if( i_sid == 1 )
+    if( i_sid == 1 + p_dec->fmt_in.subs.cc.i_channel )
         CEA708_Decoder_Push( p_sys->p_cea708, i_time, p_data, i_data );
 }
 



More information about the vlc-commits mailing list