{"action":"closed","issue":{"url":"https://api.github.com/repos/ibireme/YYWebImage/issues/111","repository_url":"https://api.github.com/repos/ibireme/YYWebImage","labels_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/111/comments","events_url":"https://api.github.com/repos/ibireme/YYWebImage/issues/111/events","html_url":"https://github.com/ibireme/YYWebImage/issues/111","id":160832011,"number":111,"title":"项目里所有的 webp 解析出来的 image均为空(nil)， 同 #11，但原因似乎不同, android 使用 Fresco解析正常","user":{"login":"btxkenshin","id":1837666,"avatar_url":"https://avatars.githubusercontent.com/u/1837666?v=3","gravatar_id":"","url":"https://api.github.com/users/btxkenshin","html_url":"https://github.com/btxkenshin","followers_url":"https://api.github.com/users/btxkenshin/followers","following_url":"https://api.github.com/users/btxkenshin/following{/other_user}","gists_url":"https://api.github.com/users/btxkenshin/gists{/gist_id}","starred_url":"https://api.github.com/users/btxkenshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btxkenshin/subscriptions","organizations_url":"https://api.github.com/users/btxkenshin/orgs","repos_url":"https://api.github.com/users/btxkenshin/repos","events_url":"https://api.github.com/users/btxkenshin/events{/privacy}","received_events_url":"https://api.github.com/users/btxkenshin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-17T07:55:49Z","updated_at":"2016-06-17T12:47:52Z","closed_at":"2016-06-17T12:47:52Z","body":"[notdisplay_1.webp.zip](https://github.com/ibireme/YYWebImage/files/319987/notdisplay_1.webp.zip)\r\n\r\nRT, 服务器使用的图片是七牛那边转换为webp格式的，之前一直使用 SDWebImage 可以正常显示。\r\n尝试使用 `YYImage` 或者直接使用 `YYWebImage` 均获取到空的图片。\r\n\r\n1. 我看了[#11](https://github.com/ibireme/YYImage/issues/11)，并且 在引用到了`VP8_STATUS_NOT_ENOUGH_DATA`做判断的地方都打了断点，并没有走到：\r\n``` YYCGImageCreateWithWebPData 和 _newUnblendedImageAtIndex ```\r\n\r\n2. `YYImageDecoder` 通过 `_frameAtIndex` 获取到的 `YYImageFrame` 为 nil, 跟进去看到 `frame.blendFromIndex = 1`，同时` frame.index = 0`，导致不会走以下循环\r\n```\r\nfor (uint32_t i = (uint32_t)frame.blendFromIndex; i <= (uint32_t)frame.index; i++) {\r\n                if (i == frame.index) {\r\n                    if (!imageRef) imageRef = [self _newBlendedImageWithFrame:frame];\r\n                } else {\r\n                    [self _blendImageWithFrame:_frames[i]];\r\n                }\r\n            }\r\n```\r\n最终走到空的 `imageRef`\r\n```\r\nif (!imageRef) return nil;\r\n```\r\n\r\n3. 另外尝试了服务器提供的 webp 格式的动图，一样无法解析，没有跟进，推测跟静态 webp 解析失败有关\r\n4. 同样的静态 webp 和动态 webp，android 那边使用 facebook 开源的Fresco均能正常解析显示"}}
{"actor":{"display_login":"ibireme"}}