Commit 085a335d authored by Rafaël Carré's avatar Rafaël Carré

decklink access: fix CC decoding with some sources

These sources have some data appended after the CC units.
Example: 0x91 0xe0 0x65 0x6e 0x67 0x7e 0x3f 0xff
                     e    n    g
Probably a language code.
parent 32968cc1
......@@ -340,7 +340,9 @@ HRESULT DeckLinkCaptureDelegate::VideoInputFrameArrived(IDeckLinkVideoInputFrame
if (!(cc_count & 0xe0))
continue;
cc_count &= 0x1f;
if ((len - 13) != cc_count * 3)
/* FIXME: parse additional data (CC language?) */
if ((len - 13) < cc_count * 3)
continue;
if (cdp[len - 4] != 0x74) /* footer id */
......
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