leduycuong86 / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

incorrect double[] matrix values in TrackHeaderBox #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Old values from the long[] were retained, leading to garbage data in the matrix 
when authoring files.

This fix worked for me:

private double[] matrix = new double[]{1.0d, 0, 0, 0, 1.0d, 0, 0, 0, 1.0d};

Not sure about the last 1.0 - just copied an existing MP4 file's matrix :)

Original issue reported on code.google.com by anton.ma...@ninetyten.co.nz on 20 Nov 2012 at 1:40

GoogleCodeExporter commented 9 years ago
They became wrong when I switched to doubles instead of longs.
Thank you Anton!

Original comment by Sebastian.Annies on 26 Nov 2012 at 12:26