# HG changeset patch # User benoit # Date 1213946864 0 # Node ID 99565673f94c2a4c0549ab54bd2d0ccb58d536a3 # Parent 31a0f3b99ef72ec4a9252be4dd81e3b72a41356c Check if there is at least a stream before writing trailer. Patch by Art Clarke: aclarke vlideshow com diff -r 31a0f3b99ef7 -r 99565673f94c utils.c --- a/utils.c Thu Jun 19 23:25:04 2008 +0000 +++ b/utils.c Fri Jun 20 07:27:44 2008 +0000 @@ -2551,7 +2551,7 @@ pktl= pktl->next; } - if(s->nb_streams == stream_count || (flush && stream_count)){ + if(stream_count && (s->nb_streams == stream_count || flush)){ pktl= s->packet_buffer; *out= pktl->pkt;