Audio-M4P
view release on metacpan or search on metacpan
lib/Audio/M4P/QuickTime.pm view on Meta::CPAN
$self->{buffer},
$co64->start + 16,
$co64->size - 16,
pack( 'N*', @samples )
);
}
foreach my $tfhd (@tfhd_atoms) {
my ( $tf_flags, undef, $offset_high32, $offset_low32 ) =
unpack( 'NNNN', substr( $self->{buffer}, $tfhd->start + 8, 16 ) );
# we only need to adjust if the 1st movie fragment tf_flags bit is set
next unless ( ( $tf_flags % 2 ) == 1 );
my $offset64 = ( $offset_high32 * ( 2**32 ) ) + $offset_low32;
next if $offset64 < $change_position;
$offset64 -= $sinf_sz;
$offset_high32 = int( $offset64 / ( 2**32 ) + 0.0001 );
$offset_low32 = $offset64 % ( 2**32 );
substr( $self->{buffer}, $tfhd->start + 16,
8, pack( 'NN', $offset_high32, $offset_low32 ) );
( run in 0.933 second using v1.01-cache-2.11-cpan-364913b4093 )