From 1d54be215309b8aa71a51826e4b0a1660fef9f93 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Fri, 17 Feb 2017 00:46:14 +0100 Subject: [PATCH] lavc/avpacket: Initialize a variable in error path. Fixes ticket #6153. Tested-by: Tyson Smith --- libavcodec/avpacket.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 24b4efb956..8e028a2a6c 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -348,6 +348,8 @@ uint8_t *av_packet_get_side_data(AVPacket *pkt, enum AVPacketSideDataType type, return pkt->side_data[i].data; } } + if (size) + *size = 0; return NULL; }