in case of invalid picture size. Originally committed as revision 22962 to svn://svn.ffmpeg.org/ffmpeg/trunk