This will probably only be of interest to my programming reader, but I certainly found it amusing ....
I was trying to fill in data in a DirectShow stream coming off a a input pin, and attempting to cast the bitmap information to a VIDEOINFOHEADER2 as opposed to a plain VIDEOINFOHEADER to see if I could get better aspect ratio information. The pin stream is filled by DirectShow, of course, and VIDEOINFOHEADER2 is a bit larger than VIDEOINFOHEADER. The cast didn't look right, so I figured it was wrong, but what to my amazement did I find filling the space beyond where VIDEOINFOHEADER would've ended? I found a filled buffer, of course, with repeated integers: 3131961357.
Use a handy hex converter to see why I about fell out of my chair laughing ... guess I can't use videoinfoheader2 there, after all!
/Humor | 1 writeback | permanent link
On 8/16/2009 21:16:03
JdJ wrote
comment...