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
1204 glClear(GL_COLOR_BUFFER_BIT);1204 glClear(GL_COLOR_BUFFER_BIT);
1205 1205
1206 if (!repaint) {1206 if (!repaint) {
1207 if (is_pkt)
1208 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
1207 LOAD_TEXTURE_DATA(0, 0)1209 LOAD_TEXTURE_DATA(0, 0)
1208 if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {1210 if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
1209 LOAD_TEXTURE_DATA(1, 1)1211 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