Mercurial > libavformat.hg
comparison utils.c @ 3485:99565673f94c libavformat
Check if there is at least a stream before writing trailer.
Patch by Art Clarke: aclarke vlideshow com
author | benoit |
---|---|
date | Fri, 20 Jun 2008 07:27:44 +0000 |
parents | 4a1ecbbf5725 |
children | f68fcc8b8e9e |
comparison
equal
deleted
inserted
replaced
3484:31a0f3b99ef7 | 3485:99565673f94c |
---|---|
2549 stream_count++; | 2549 stream_count++; |
2550 streams[ pktl->pkt.stream_index ]++; | 2550 streams[ pktl->pkt.stream_index ]++; |
2551 pktl= pktl->next; | 2551 pktl= pktl->next; |
2552 } | 2552 } |
2553 | 2553 |
2554 if(s->nb_streams == stream_count || (flush && stream_count)){ | 2554 if(stream_count && (s->nb_streams == stream_count || flush)){ |
2555 pktl= s->packet_buffer; | 2555 pktl= s->packet_buffer; |
2556 *out= pktl->pkt; | 2556 *out= pktl->pkt; |
2557 | 2557 |
2558 s->packet_buffer= pktl->next; | 2558 s->packet_buffer= pktl->next; |
2559 av_freep(&pktl); | 2559 av_freep(&pktl); |