Skip to content
Snippets Groups Projects
Commit 91c3361b authored by Timothy B. Terriberry's avatar Timothy B. Terriberry
Browse files

Fix long-standing bug in the umv padding code that left the first 8 to 16 bytes

 of the first row in the full reconstruction buffer uninitialized (and also
 wrote 8 bytes past the end of the buffer, not that valgrind ever complained).

svn path=/trunk/theora/; revision=13909
parent 0e2de23c
No related branches found
No related tags found
No related merge requests found
......@@ -638,7 +638,7 @@ void oc_state_borders_fill_caps(oc_theora_state *_state,int _refi,int _pli){
iplane=_state->ref_frame_bufs[_refi]+_pli;
fullw=iplane->width+(hpadding<<1);
apix=iplane->data-hpadding;
bpix=iplane->data+(iplane->height-1)*iplane->ystride;
bpix=iplane->data+(iplane->height-1)*iplane->ystride-hpadding;
epix=apix-iplane->ystride*vpadding;
while(apix!=epix){
memcpy(apix-iplane->ystride,apix,fullw);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment