tiffenc: use the AVFrame API properly.