[FFmpeg-cvslog] r17176 - trunk/libavformat/mxfenc.c

bcoudurier subversion
Thu Feb 12 06:32:41 CET 2009


Author: bcoudurier
Date: Thu Feb 12 06:32:40 2009
New Revision: 17176

Log:
set last packet next pointer to null

Modified:
   trunk/libavformat/mxfenc.c

Modified: trunk/libavformat/mxfenc.c
==============================================================================
--- trunk/libavformat/mxfenc.c	Thu Feb 12 04:38:08 2009	(r17175)
+++ trunk/libavformat/mxfenc.c	Thu Feb 12 06:32:40 2009	(r17176)
@@ -1560,6 +1560,7 @@ static int mxf_interleave_get_packet(AVF
         pktl = s->packet_buffer;
         if (s->nb_streams != stream_count) {
             AVPacketList *first = NULL;
+            AVPacketList *last = NULL;
             // find first packet in edit unit
             while (pktl) {
                 AVStream *st = s->streams[pktl->pkt.stream_index];
@@ -1567,8 +1568,11 @@ static int mxf_interleave_get_packet(AVF
                     break;
                 else if (!first)
                     first = pktl;
+                last = pktl;
                 pktl = pktl->next;
             }
+            if (last)
+                last->next = NULL;
             // purge packet queue
             while (pktl) {
                 AVPacketList *next = pktl->next;




More information about the ffmpeg-cvslog mailing list