Correct about swappign 1st and 2nd word when 32 bit number however I
think your version of RTMP.pm won't work for 2 reasons.
(i) encode_number is called with various size numbers such as 1,4 and 8
bytes so the swapDouble should only be done when length is 8.
(ii) when decoding swapDoubles should be done after swapbytes so
decode_number should be
return unpack('d', swapDoubles(swap( $_[0]) ) );
I'm not 100% sure but just looking at the exiftool.pm code as a
template.
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=70812
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins