mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-22 00:20:07 +08:00
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>
This commit is contained in:

committed by
Michael Niedermayer

parent
bd4dc9e717
commit
8ff72924cf
@@ -1204,6 +1204,8 @@ static int opengl_draw(AVFormatContext *h, void *input, int repaint, int is_pkt)
|
|||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
if (!repaint) {
|
if (!repaint) {
|
||||||
|
if (is_pkt)
|
||||||
|
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
LOAD_TEXTURE_DATA(0, 0)
|
LOAD_TEXTURE_DATA(0, 0)
|
||||||
if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
|
if (desc->flags & AV_PIX_FMT_FLAG_PLANAR) {
|
||||||
LOAD_TEXTURE_DATA(1, 1)
|
LOAD_TEXTURE_DATA(1, 1)
|
||||||
|
Reference in New Issue
Block a user