[FFmpeg-cvslog] r12607 - trunk/libavformat/mov.c

Reimar Döffinger Reimar.Doeffinger
Thu Mar 27 20:03:11 CET 2008


On Thu, Mar 27, 2008 at 08:57:22PM +0200, Uoti Urpala wrote:
> On Thu, 2008-03-27 at 19:47 +0100, Reimar D?ffinger wrote:
> > Does strerror actually modify global state? And is there any reason why
> > it would have to (except, if you really insist on libc returning
> > translated strings, loading these translations once)?
> 
> Any implementation that identifies unrecognized error numbers in the
> result ("Unknown error 33554432") has to modify a string.

Stupid idea ;-).
Well, anyway, using strerror_r instead seems quite straight-forward to me,
though it is only POSIX and not part of C, but that should be good
enough for us?
And since the return value can also be a static string, a rather small
on-stack buffer should be good enough for use with strerror_r IMO.

Greetings,
Reimar D?ffinger




More information about the ffmpeg-cvslog mailing list