diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-10-17 17:44:06 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-10-17 17:44:06 +0000 |
commit | 5b9d79bd770608073a3245f50269ad8c36d7ef5d (patch) | |
tree | 8b07c70684cb5a4ac50bd0414487a813f9735a81 | |
parent | 595da759de5a94def0ee409a72b07d0be36f5d2a (diff) | |
download | ffmpeg-5b9d79bd770608073a3245f50269ad8c36d7ef5d.tar.gz |
avoid overwriting pkt
Originally committed as revision 6723 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/gxfenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/gxfenc.c b/libavformat/gxfenc.c index 2345790bda..22937628e0 100644 --- a/libavformat/gxfenc.c +++ b/libavformat/gxfenc.c @@ -792,7 +792,7 @@ static int gxf_interleave_packet(AVFormatContext *s, AVPacket *out, AVPacket *pk pkt = NULL; } if (flush || av_fifo_size(&sc->audio_buffer) >= GXF_AUDIO_PACKET_SIZE) { - if (gxf_new_audio_packet(gxf, sc, &new_pkt, flush) > 0) { + if (!pkt && gxf_new_audio_packet(gxf, sc, &new_pkt, flush) > 0) { pkt = &new_pkt; break; /* add pkt right now into list */ } |