[Ffmpeg-cvslog] r6723 - trunk/libavformat/gxfenc.c
bcoudurier
subversion
Tue Oct 17 19:44:06 CEST 2006
Author: bcoudurier
Date: Tue Oct 17 19:44:06 2006
New Revision: 6723
Modified:
trunk/libavformat/gxfenc.c
Log:
avoid overwriting pkt
Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c (original)
+++ trunk/libavformat/gxfenc.c Tue Oct 17 19:44:06 2006
@@ -792,7 +792,7 @@
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 */
}
More information about the ffmpeg-cvslog
mailing list