[FFmpeg-devel] [PATCH] tools/cws2fws.c tweaks

James Darnley james.darnley
Wed Aug 25 01:31:38 CEST 2010


Is this tool still supported?

I was trying to use this tool on Windows but it repeatedly failed.  I
discovered this was because it doesn't open the file in binary mode.
A simple binary or with O_BINARY solved that.

Then I saw that it was not interpreting the size correctly, reading
the input as signed chars.  It managed to interpret hex(46 BD 0B 00)
as -17086.  Changing them to unsigned chars fixed that.

I've attached a diff which has these changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cws2fws.diff
Type: application/octet-stream
Size: 822 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100825/475bbb0d/attachment.obj>



More information about the ffmpeg-devel mailing list