Skip to content
  • Georgi Chorbadzhiyski's avatar
    mux/ts: Fix setting of even CSA key. · 79bb067a
    Georgi Chorbadzhiyski authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
    Without this fix the second CSA key can not be set, which results
    in a stream that is impossible to decrypt.
    
    Tested with:
      cvlc \
        -I dummy -vv \
        --sout '#standard{access=udp,mux=ts,dst=239.78.78.78:5000}' \
        --sout-ts-crypt-audio --no-sout-ts-crypt-video \
        --sout-ts-csa-ck=1111111111111111 \
        --sout-ts-csa2-ck=0000000000000000 \
        http://example.com/source.ts
    
    
    
    Before the patch:
      mux_ts mux debug: using CSA (de)scrambling with odd key=11:11:11:11:11:11:11:11
      mux_ts mux debug: no CSA found
      mux_ts mux debug: no CSA found
    
    After the patch:
      mux_ts mux debug: using CSA (de)scrambling with odd key=11:11:11:11:11:11:11:11
      mux_ts mux debug: using CSA (de)scrambling with even key=0:0:0:0:0:0:0:0
    
    Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
    79bb067a