mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 12:36:41 +08:00 
			
		
		
		
	mux: Make sure that the data is actually written
And forward the error if it is not. Bug-Id: 881 CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
		 Sean McGovern
					Sean McGovern
				
			
				
					committed by
					
						 Luca Barbato
						Luca Barbato
					
				
			
			
				
	
			
			
			 Luca Barbato
						Luca Barbato
					
				
			
						parent
						
							e05f7ed543
						
					
				
				
					commit
					9ad1e0c12c
				
			| @@ -352,8 +352,12 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) | |||||||
|     } |     } | ||||||
|     ret = s->oformat->write_packet(s, pkt); |     ret = s->oformat->write_packet(s, pkt); | ||||||
|  |  | ||||||
|     if (s->pb && ret >= 0 && s->flags & AVFMT_FLAG_FLUSH_PACKETS) |     if (s->pb && ret >= 0) { | ||||||
|         avio_flush(s->pb); |         if (s->flags & AVFMT_FLAG_FLUSH_PACKETS) | ||||||
|  |             avio_flush(s->pb); | ||||||
|  |         if (s->pb->error < 0) | ||||||
|  |             ret = s->pb->error; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     return ret; |     return ret; | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user