mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
audiointerleave: Always initialize new_pkt
CC: libav-stable@libav.org Bug-Id: CID 609333
This commit is contained in:
parent
8ef98855d2
commit
f7e9324733
@ -127,7 +127,7 @@ int ff_audio_rechunk_interleave(AVFormatContext *s, AVPacket *out, AVPacket *pkt
|
|||||||
for (i = 0; i < s->nb_streams; i++) {
|
for (i = 0; i < s->nb_streams; i++) {
|
||||||
AVStream *st = s->streams[i];
|
AVStream *st = s->streams[i];
|
||||||
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
|
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))
|
while (interleave_new_audio_packet(s, &new_pkt, i, flush))
|
||||||
if ((ret = ff_interleave_add_packet(s, &new_pkt, compare_ts)) < 0)
|
if ((ret = ff_interleave_add_packet(s, &new_pkt, compare_ts)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user