[FFmpeg-cvslog] audiointerleave: Always initialize new_pkt
Vittorio Giovara
git at videolan.org
Mon Jun 8 22:45:44 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Jun 3 14:16:47 2015 +0100| [f7e932473314e6ca4c851d49cbde8570b6e66383] | committer: Vittorio Giovara
audiointerleave: Always initialize new_pkt
CC: libav-stable at libav.org
Bug-Id: CID 609333
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7e932473314e6ca4c851d49cbde8570b6e66383
---
libavformat/audiointerleave.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/audiointerleave.c b/libavformat/audiointerleave.c
index ba78d4e..fd07893 100644
--- a/libavformat/audiointerleave.c
+++ b/libavformat/audiointerleave.c
@@ -127,7 +127,7 @@ int ff_audio_rechunk_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt
for (i = 0; i < s->nb_streams; i++) {
AVStream *st = s->streams[i];
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
- AVPacket new_pkt;
+ AVPacket new_pkt = { 0 };
while (interleave_new_audio_packet(s, &new_pkt, i, flush))
if ((ret = ff_interleave_add_packet(s, &new_pkt, compare_ts)) < 0)
return ret;
More information about the ffmpeg-cvslog
mailing list