summaryrefslogtreecommitdiff
path: root/libavcodec/avpacket.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-17 00:46:14 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-17 10:31:29 +0100
commit1d54be215309b8aa71a51826e4b0a1660fef9f93 (patch)
treeab70c2a067eff4f71b4d15367bcb2e3171e2ae39 /libavcodec/avpacket.c
parent9ccc6cecd2d0645f5073382360509eb278b239b1 (diff)
downloadffmpeg-1d54be215309b8aa71a51826e4b0a1660fef9f93.tar.gz
lavc/avpacket: Initialize a variable in error path.
Fixes ticket #6153. Tested-by: Tyson Smith
Diffstat (limited to 'libavcodec/avpacket.c')
-rw-r--r--libavcodec/avpacket.c2
1 files changed, 2 insertions, 0 deletions
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;
}