History

libpostproc: alloc a few bytes more in the temporary buffer

This avoids dering reading 4 bytes prior the buffer (1 byte can be used) Fixes Ticket2057

Michael Niedermayer committed 13 years ago

Commit 9e04e111 parent f1185fb2 files · +2 −2Browse files

Showing the changes to libpostproc/postprocess.c (1 of 2 files). Show all

Unified · Split

libpostproc/postprocess.c+1−1
@@ -871,7 +871,7 @@ static void reallocBuffers(PPContext *c, int width, int height, int stride, int · 870 unmodified lines
871871 c->stride= stride;
872872 c->qpStride= qpStride;
873873
874− reallocAlign((void **)&c->tempDst, 8, stride*24);
874+ reallocAlign((void **)&c->tempDst, 8, stride*24+32);
875875 reallocAlign((void **)&c->tempSrc, 8, stride*24);
876876 reallocAlign((void **)&c->tempBlocks, 8, 2*16*8);
877877 reallocAlign((void **)&c->yHistogram, 8, 256*sizeof(uint64_t));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t