From e02c574ad9a492f6c303faaf00ef0b75698b8071 Mon Sep 17 00:00:00 2001 From: Sebastian Annies Date: Wed, 12 Nov 2014 19:56:41 +0200 Subject: [PATCH] adopt to new CencEncryptedTrack constructor --- .../main/java/com/googlecode/mp4parser/CencEncryptDecrypt.java | 2 +- .../main/java/com/googlecode/mp4parser/CheckSampleGroups.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/src/main/java/com/googlecode/mp4parser/CencEncryptDecrypt.java b/examples/src/main/java/com/googlecode/mp4parser/CencEncryptDecrypt.java index 3ac86091c..1b2dcae82 100644 --- a/examples/src/main/java/com/googlecode/mp4parser/CencEncryptDecrypt.java +++ b/examples/src/main/java/com/googlecode/mp4parser/CencEncryptDecrypt.java @@ -29,7 +29,7 @@ public static void main(String[] args) throws IOException { Movie mEncryptOut = new Movie(); SecretKey sk = new SecretKeySpec(new byte[]{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, "AES"); for (Track track : mOrig.getTracks()) { - mEncryptOut.addTrack(new CencEncryptingTrackImpl(track, UUID.randomUUID(), sk)); + mEncryptOut.addTrack(new CencEncryptingTrackImpl(track, UUID.randomUUID(), sk, false)); } Container cEncrypted = mp4Builder.build(mEncryptOut); diff --git a/examples/src/main/java/com/googlecode/mp4parser/CheckSampleGroups.java b/examples/src/main/java/com/googlecode/mp4parser/CheckSampleGroups.java index a8405be9a..6bff1c4eb 100644 --- a/examples/src/main/java/com/googlecode/mp4parser/CheckSampleGroups.java +++ b/examples/src/main/java/com/googlecode/mp4parser/CheckSampleGroups.java @@ -46,7 +46,7 @@ public static void main(String[] args) throws IOException { m.setTracks(Collections.singletonList( new CencEncryptingTrackImpl( m.getTracks().get(0), - uuid1, keys, keyRotation, "cenc"))); // cbc1 alternatively + uuid1, keys, keyRotation, "cenc", false))); // cbc1 alternatively Container c = builder.build(m); c.writeContainer(new FileOutputStream("output.mp4").getChannel());