Mercurial > libavformat.hg
changeset 4461:f21c01140f2d libavformat
set last packet next pointer to null
author | bcoudurier |
---|---|
date | Thu, 12 Feb 2009 05:32:40 +0000 |
parents | 21945a5288cb |
children | f6b8d1584348 |
files | mxfenc.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mxfenc.c Thu Feb 12 03:38:08 2009 +0000 +++ b/mxfenc.c Thu Feb 12 05:32:40 2009 +0000 @@ -1560,6 +1560,7 @@ 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 @@ 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;