flicvideo: fix invalid reads