mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
move VP8EncDspARGBInit() call closer to where it's needed
Change-Id: I0d5121b456918f0ee6646903a8d71d4384deafe3
This commit is contained in:
parent
7ce8788b06
commit
1f4b8642e8
@ -39,7 +39,6 @@ int WebPPictureInitInternal(WebPPicture* picture, int version) {
|
||||
memset(picture, 0, sizeof(*picture));
|
||||
picture->writer = DummyWriter;
|
||||
WebPEncodingSetError(picture, VP8_ENC_OK);
|
||||
VP8EncDspARGBInit();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
@ -1060,6 +1060,8 @@ static int Import(WebPPicture* const picture,
|
||||
}
|
||||
if (!WebPPictureAlloc(picture)) return 0;
|
||||
|
||||
VP8EncDspARGBInit();
|
||||
|
||||
assert(step >= (import_alpha ? 4 : 3));
|
||||
if (import_alpha) {
|
||||
for (y = 0; y < height; ++y) {
|
||||
|
Loading…
Reference in New Issue
Block a user