Skip to content

Commit

Permalink
Fixes #11029. Ensure AVPacket's data and size fields are initialized.
Browse files Browse the repository at this point in the history
Without this initialization, mpegts_push_section() may try to access
uninitialized data and size fields from the AVPacket structure.
  • Loading branch information
stichnot committed Sep 4, 2012
1 parent b5fbc74 commit 92016b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/external/FFmpeg/libavformat/utils.c
Expand Up @@ -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); ret= s->iformat->read_packet(s, pkt);
if (ret < 0) { if (ret < 0) {
if (!pktl || ret == AVERROR(EAGAIN)) if (!pktl || ret == AVERROR(EAGAIN))
Expand Down

0 comments on commit 92016b9

Please sign in to comment.