diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-02-20 11:22:47 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-02-20 11:22:47 +0000 |
commit | 2e5195646dc5578e1751004b0ac6e787d18637e4 (patch) | |
tree | a17949193cfb95881a8301d241d0d73258c4d6ae /libavformat/mpc.c | |
parent | 4280f9bbcd439e43a37e865018ae501e6a8b9a9e (diff) | |
download | ffmpeg-2e5195646dc5578e1751004b0ac6e787d18637e4.tar.gz |
Do not leave uninitialized data in the packet in MPC demuxer. Should allow for
adding a demuxer test to FATE.
Originally committed as revision 21916 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpc.c')
-rw-r--r-- | libavformat/mpc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpc.c b/libavformat/mpc.c index 253a900f56..a164783002 100644 --- a/libavformat/mpc.c +++ b/libavformat/mpc.c @@ -170,6 +170,8 @@ static int mpc_read_packet(AVFormatContext *s, AVPacket *pkt) pkt->data[0] = curbits; pkt->data[1] = (c->curframe > c->fcount); + pkt->data[2] = 0; + pkt->data[3] = 0; pkt->stream_index = 0; pkt->pts = cur; |