avcodec/flicvideo: Check frame_size before decrementing