Skip to content
Browse files

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.
  • Loading branch information...
1 parent b5fbc74 commit 92016b94983a4b8a6cb75dbc48893f5c05ce4620 @stichnot stichnot committed Sep 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/external/FFmpeg/libavformat/utils.c
View
2 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))

0 comments on commit 92016b9

Please sign in to comment.
Something went wrong with that request. Please try again.