Check if there is at least a stream before writing trailer.
Patch by Art Clarke: aclarke vlideshow com Originally committed as revision 13836 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									9b64a036c0
								
							
						
					
					
						commit
						6919e54c00
					
				@ -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;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user