[FFmpeg-devel] regression - mpeg2 interlace/topfield flags not set anymore
Reimar Döffinger
Reimar.Doeffinger
Sun Jan 27 10:06:17 CET 2008
Hello,
On Sun, Jan 27, 2008 at 09:59:08AM +0100, Reimar D?ffinger wrote:
> On Sun, Jan 27, 2008 at 09:27:58AM +0100, christophelorenz wrote:
> > Rich Felker wrote:
> > > Apparently libbrokenos needs to replace strtod with a working
> > >version...
> > >
> > Is there an alternative to libbrokenos ? (Yes, I know one, but I won't
> > name it)
> > Can we implement a new strtod in ff ?
>
> We already have av_strtod, but it is not used consistently (actually it
> is only used in eval.c).
> Attached patch adds a workaround to it, but I have some doubts if it
> should be done (on the other hand libbrokenos is not yet ready it
> seems...).
Sorry, this is a patch that actually compiles. No idea if it works
though, I am not running a broken os right now :-P
-------------- next part --------------
Index: libavcodec/eval.c
===================================================================
--- libavcodec/eval.c (revision 11627)
+++ libavcodec/eval.c (working copy)
@@ -91,6 +91,8 @@
double d;
char *next;
d = strtod(name, &next);
+ if (d == 0 && name[0] == '0' && name[1] == 'x') // HACK around broken strtod
+ d = strtol(name, &next, 0);
/* if parsing succeeded, check for and interpret postfixes */
if (next!=name) {
More information about the ffmpeg-devel
mailing list