[FFmpeg-cvslog] lavc/avpacket: Initialize a variable in error path.
Carl Eugen Hoyos
git at videolan.org
Fri Feb 17 11:47:16 EET 2017
ffmpeg | branch: release/2.8 | Carl Eugen Hoyos <cehoyos at ag.or.at> | Fri Feb 17 00:46:14 2017 +0100| [92d8106fa6108a5e7dd3080f6b094636d5aedfc0] | committer: Carl Eugen Hoyos
lavc/avpacket: Initialize a variable in error path.
Fixes ticket #6153.
Tested-by: Tyson Smith
(cherry picked from commit 1d54be215309b8aa71a51826e4b0a1660fef9f93)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92d8106fa6108a5e7dd3080f6b094636d5aedfc0
---
libavcodec/avpacket.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index bf168be..39e6e97 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -337,6 +337,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;
}
More information about the ffmpeg-cvslog
mailing list