flicvideo: fix crash on flic files with invalid frame size