diff --git a/libavformat/audiointerleave.c b/libavformat/audiointerleave.c index ba78d4e9884ce4892626c1d1ae797019b7373f96..fd07893b5cdb74c81cddd465fa402a946ce5c837 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;