From 92016b94983a4b8a6cb75dbc48893f5c05ce4620 Mon Sep 17 00:00:00 2001 From: Jim Stichnoth Date: Tue, 4 Sep 2012 10:08:42 -0700 Subject: [PATCH] Fixes #11029. Ensure AVPacket's data and size fields are initialized. Without this initialization, mpegts_push_section() may try to access uninitialized data and size fields from the AVPacket structure. --- mythtv/external/FFmpeg/libavformat/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/external/FFmpeg/libavformat/utils.c b/mythtv/external/FFmpeg/libavformat/utils.c index 852cf33b204..93cf637066e 100644 --- a/mythtv/external/FFmpeg/libavformat/utils.c +++ b/mythtv/external/FFmpeg/libavformat/utils.c @@ -709,7 +709,7 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt) } } - av_init_packet(pkt); + av_new_packet(pkt, 0); ret= s->iformat->read_packet(s, pkt); if (ret < 0) { if (!pktl || ret == AVERROR(EAGAIN))