summaryrefslogtreecommitdiff
path: root/libavdevice/opengl_enc.c
diff options
context:
space:
mode:
authorLukasz Marek <lukasz.m.luki2@gmail.com>2014-04-30 20:49:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-30 22:03:32 +0200
commit8ff72924cfeb3c8fa8fc57cfea3f78ca0caaec0f (patch)
tree81c9d1940d483f2cfe94157cf45adf31dd8c2a7d /libavdevice/opengl_enc.c
parentbd4dc9e71775815b8c2aa789967cd971c324a2e1 (diff)
downloadffmpeg-8ff72924cfeb3c8fa8fc57cfea3f78ca0caaec0f.tar.gz
lavd/opengl_enc: fix pixel data alignment
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/opengl_enc.c')
-rw-r--r--libavdevice/opengl_enc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/opengl_enc.c b/libavdevice/opengl_enc.c
index 4e25f199f1..5f9748dd6f 100644
--- a/libavdevice/opengl_enc.c
+++ b/libavdevice/opengl_enc.c
@@ -1204,6 +1204,8 @@ static int opengl_draw(AVFormatContext *h, void *input, int repaint, int is_pkt)
glClear(GL_COLOR_BUFFER_BIT);
if (!repaint) {
+ if (is_pkt)
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
LOAD_TEXTURE_DATA(0, 0)
if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
LOAD_TEXTURE_DATA(1, 1)