History

h264: height needs to be 16-byte aligned as well

Sigrid Haflínudóttir committed 6 years ago

Commit a67d9831 parent 05551a71 file · +3 −2Browse files

Unified · Split

decoder_h264.c+3−2
@@ -48,8 +48,7 @@ next: · 47 unmodified lines
4848 }else if((f = malloc(sizeof(*f) + w*h*3)) != nil){
4949 f->w = w;
5050 f->h = h;
51− /* FIXME I have not a single idea what are these weird shifts based on image width */
52− yuv420_rgb24(w, h, pic, pic+w*h+w*8, pic+w*h*5/4+w*10, w, w/2, f->rgb, w*3);
51+ yuv420_rgb24(w, h, pic, pic+w*h, pic+w*h*5/4, w, w/2, f->rgb, w*3);
5352 f->dt = (sf.timestamp - lasttimestamp) * d->timebase * 1000000000ULL;
5453 lasttimestamp = sf.timestamp;
5554
@@ -68,6 +67,8 @@ next: · 12 unmodified lines
6867 }
6968 if(w & 15)
7069 w += 16 - (w & 15);
70+ if(h & 15)
71+ h += 16 - (h & 15);
7172 break;
7273
7374 case H264BSD_RDY:

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