diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-12 05:32:40 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-02-12 05:32:40 +0000 |
commit | 6f0b1866996097be25efc113fdc660f11886871e (patch) | |
tree | 5baf4ebd06be633023732784a726a8f0acd88c32 | |
parent | cfa3caf81cd64485b80def8bb2552c2dafac5eb4 (diff) | |
download | ffmpeg-6f0b1866996097be25efc113fdc660f11886871e.tar.gz |
set last packet next pointer to null
Originally committed as revision 17176 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mxfenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index d60ffceeee..833f53aefb 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -1560,6 +1560,7 @@ static int mxf_interleave_get_packet(AVFormatContext *s, AVPacket *out, AVPacket 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(AVFormatContext *s, AVPacket *out, AVPacket 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; |