Skip to content

Commit

Permalink
Minimal repro
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerd committed May 1, 2024
1 parent ca3df05 commit ebb0698
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Binary file added sdk/tests/fixtures/empty.mp4
Binary file not shown.
14 changes: 14 additions & 0 deletions sdk/tests/test_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,17 @@ fn test_builder_ca_jpg() -> Result<()> {

compare_stream_to_known_good(&mut dest, format, "CA_test.json")
}

#[test]
fn test_builder_empty_mp4() -> Result<()> {
let manifest_def = std::fs::read_to_string(fixtures_path("simple_manifest.json"))?;
let mut builder = Builder::from_json(&manifest_def)?;

let source = fixtures_path("empty.mp4");
let dest = fixtures_path("empty-signed.mp4");

// Error: InvalidAsset("Bad BMFF")
builder.sign_file(source, dest, &test_signer())?;

Ok(())
}

0 comments on commit ebb0698

Please sign in to comment.