[x264-devel] Evaluating x264 -- first steps encoding greylevel images

Måns Rullgård mans at mansr.com
Fri Mar 12 14:53:02 CET 2010


Jason Garrett-Glaser <darkshikari at gmail.com> writes:

>> The problem with the above tool is, it either crashes x264, or sends
>> it into a possibly never-ending loop; depending if the only '#if 1'
>> in the above source is '1' or '0'.  I am using the latest git-source
>> of x264.
>
> I'm pretty sure you don't want to be using fgetc for binary data.
>
> Just a hunch though.

Apart from being excruciatingly slow, no harm will come of that.
fgetc() reads exactly one byte, be it a complete character or not.
fgetwc() reads characters in the current locale encoding.

-- 
Måns Rullgård
mans at mansr.com


More information about the x264-devel mailing list