Mercurial > libavformat.hg
changeset 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 | 31a0f3b99ef7 |
children | f68fcc8b8e9e |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;