Wed, 12 Aug 2009

Geek Humor

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...

 
Notes: If you put a <mailto:> link in the URL field your address will not be mangled: this could be a bad idea as your email address could be easily harvested by bots designed for SPAM. The comments field should now format correctly for line feeds and carriage returns: when you hit the 'Enter' or 'Return' keys in your comment it should break to a new line. The text should wrap cleanly. Please let me know if it doesn't. No HTML tags will pass through - entering links seems to be the main cause of comment SPAM. Also, please be sure that Javascript is enabled in your browser before attempting to post a writeback. Sorry for any inconvenience, but this really helps cut down on the amount of comment SPAM I have to deal with.
 
 Name:
 URL:(optional)
 Title: (optional)
 Comments:  
Save my Name and URL/Email for next time