lavc/gif: crop image when possible.