History

lavd/opengl_enc: fix pixel data alignment

Lukasz Marek committed 12 years ago

Commit 8ff72921 parent bd4dc9e1 file · +2 −0Browse files

Unified · Split

libavdevice/opengl_enc.c+2−0
@@ -1204,6 +1204,8 @@ static int opengl_draw(AVFormatContext *h, void *input, int repaint, int is_pkt) · 1203 unmodified lines
12041204 glClear(GL_COLOR_BUFFER_BIT);
12051205
12061206 if (!repaint) {
1207+ if (is_pkt)
1208+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
12071209 LOAD_TEXTURE_DATA(0, 0)
12081210 if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
12091211 LOAD_TEXTURE_DATA(1, 1)

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