Skip to content

Commit

Permalink
Tests: fix to follow stream numbering used by shaka-packager
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Nov 8, 2023
1 parent a6d149f commit 8df61e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/content_protection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@ async fn test_decryption_webm() {
let meta = ffprobe(out.clone()).unwrap();
assert_eq!(meta.streams.len(), 2);
let stream = &meta.streams[0];
assert_eq!(stream.codec_type, Some(String::from("audio")));
assert_eq!(stream.codec_name, Some(String::from("opus")));
let stream = &meta.streams[1];
assert_eq!(stream.codec_type, Some(String::from("video")));
assert_eq!(stream.codec_name, Some(String::from("vp9")));
assert!(stream.width.is_some());
let stream = &meta.streams[1];
assert_eq!(stream.codec_type, Some(String::from("audio")));
assert_eq!(stream.codec_name, Some(String::from("opus")));
let ffmpeg = Command::new("ffmpeg")
.args(["-v", "error",
"-i", &out.to_string_lossy(),
Expand Down

0 comments on commit 8df61e1

Please sign in to comment.