[gif] - support giflib4 api