Skip to content

Commit

Permalink
adopt to new CencEncryptedTrack constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
sannies committed Nov 12, 2014
1 parent 56b2d4e commit e02c574
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void main(String[] args) throws IOException {
m.setTracks(Collections.<Track>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());

Expand Down

0 comments on commit e02c574

Please sign in to comment.