Commit 86802cee authored by benoit's avatar benoit

Check if there is at least a stream before writing trailer.

Patch by Art Clarke: aclarke vlideshow com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13836 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ec382d6a
...@@ -2551,7 +2551,7 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pk ...@@ -2551,7 +2551,7 @@ int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pk
pktl= pktl->next; 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; pktl= s->packet_buffer;
*out= pktl->pkt; *out= pktl->pkt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment