File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
SDWebImageWebPCoder/Classes Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -307,8 +307,7 @@ - (void)updateIncrementalData:(NSData *)data finished:(BOOL)finished {
307
307
_finished = finished;
308
308
// check whether we can detect Animated WebP or Static WebP, they need different codec (Demuxer or IDecoder)
309
309
if (!_hasAnimation) {
310
- _imageData = [data copy ];
311
- VP8StatusCode status = WebPIUpdate (_idec, _imageData.bytes , _imageData.length );
310
+ VP8StatusCode status = WebPIUpdate (_idec, data.bytes , data.length );
312
311
// For Static WebP, all things done.
313
312
// For Animated WebP (currently use `VP8_STATUS_UNSUPPORTED_FEATURE` to check), continue to create demuxer
314
313
if (status != VP8_STATUS_UNSUPPORTED_FEATURE) {
@@ -324,7 +323,7 @@ - (void)updateIncrementalData:(NSData *)data finished:(BOOL)finished {
324
323
WebPDemuxDelete (_demux);
325
324
_demux = NULL ;
326
325
}
327
- _imageData = [ data copy ] ;
326
+ _imageData = data;
328
327
WebPData webpData;
329
328
WebPDataInit (&webpData);
330
329
webpData.bytes = _imageData.bytes ;
You can’t perform that action at this time.
0 commit comments