diff mbox series

[FFmpeg-devel,2/2] Fix memory allocation problem. Related to ticket #9264.

Message ID 20210609024226.13955-1-houlei@uniontech.com
State New
Headers show
Series Untitled series #4154
Related show

Commit Message

HouLei June 9, 2021, 2:42 a.m. UTC
From: houlei <houlei@uniontech.com>

Signed-off-by: houlei <houlei@uniontech.com>
---
 libavdevice/xv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index 7e15c178b6..8f9a2cb5c0 100644
--- a/libavdevice/xv.c
+++ b/libavdevice/xv.c
@@ -300,7 +300,7 @@  static int write_picture(AVFormatContext *s, uint8_t *input_data[4],
         img->data + img->offsets[0],
         img->data + img->offsets[1],
         img->data + img->offsets[2],
-        img->data + img->offsets[3]
+        0
     };
 
     /* Check messages. Window might get closed. */