diff --git a/video/closedcaption/src/mcc_parser.rs b/video/closedcaption/src/mcc_parser.rs index 70e221ee..c2ec9706 100644 --- a/video/closedcaption/src/mcc_parser.rs +++ b/video/closedcaption/src/mcc_parser.rs @@ -129,6 +129,7 @@ where I::Error: ParseError, { ( + optional(range(&[0xEFu8, 0xBBu8, 0xBFu8][..])), range(b"File Format=MacCaption_MCC V".as_ref()), choice!(range(b"1.0".as_ref()), range(b"2.0".as_ref())), end_of_line(), diff --git a/video/closedcaption/src/scc_parser.rs b/video/closedcaption/src/scc_parser.rs index 440b8df2..bd02f3e9 100644 --- a/video/closedcaption/src/scc_parser.rs +++ b/video/closedcaption/src/scc_parser.rs @@ -120,7 +120,11 @@ where I: RangeStream, I::Error: ParseError, { - (range(b"Scenarist_SCC V1.0".as_ref()), end_of_line()) + ( + optional(range(&[0xEFu8, 0xBBu8, 0xBFu8][..])), + range(b"Scenarist_SCC V1.0".as_ref()), + end_of_line(), + ) .map(|_| SccLine::Header) .message("while parsing header") }