[FFmpeg-cvslog] r18005 - trunk/libavformat/rmdec.c

Ronald S. Bultje rsbultje
Mon Mar 16 21:32:30 CET 2009


Hi,

2009/3/16 M?ns Rullg?rd <mans at mansr.com>:
> s->streams[i] with uninitialised i is a bad idea...

Even if I don't use the result?

s->streams[i] is just s->streams + i, so an (undefined, random)
address. As long as I don't use it (i.e. access
s->streams[i]->something", I don't actually access (read from) the
"random" resulting address and thus it shouldn't matter, right?

Anyway, thanks for solving it, I'll check fate in an hour or so to see
if this fixed it. I'm just trying to understand so I won't make this
mistake again.

Ronald




More information about the ffmpeg-cvslog mailing list