Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 92016b94983a4b8a6cb75dbc48893f5c05ce4620 1 parent b5fbc74
@stichnot stichnot authored
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))
Please sign in to comment.
Something went wrong with that request. Please try again.