flvenc: propagate error properly
avio_flush can fail, in particular when used with the rtmp/librtmp protocol.
This commit is contained in:
		
							parent
							
								
									171ae1eb0d
								
							
						
					
					
						commit
						0e28e9ca8f
					
				@ -434,7 +434,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    av_free(data);
 | 
					    av_free(data);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 0;
 | 
					    return pb->error;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
AVOutputFormat ff_flv_muxer = {
 | 
					AVOutputFormat ff_flv_muxer = {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user