You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avformat/concatdec: pass the interrupt callback on
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
				
					committed by
					
						 Michael Niedermayer
						Michael Niedermayer
					
				
			
			
				
	
			
			
			
						parent
						
							1c1bb203dd
						
					
				
				
					commit
					4958628ba6
				
			| @@ -132,9 +132,16 @@ static int open_file(AVFormatContext *avf, unsigned fileno) | ||||
|  | ||||
|     if (cat->avf) | ||||
|         avformat_close_input(&cat->avf); | ||||
|  | ||||
|     cat->avf = avformat_alloc_context(); | ||||
|     if (!cat->avf) | ||||
|         return AVERROR(ENOMEM); | ||||
|  | ||||
|     cat->avf->interrupt_callback = avf->interrupt_callback; | ||||
|     if ((ret = avformat_open_input(&cat->avf, file->url, NULL, NULL)) < 0 || | ||||
|         (ret = avformat_find_stream_info(cat->avf, NULL)) < 0) { | ||||
|         av_log(avf, AV_LOG_ERROR, "Impossible to open '%s'\n", file->url); | ||||
|         avformat_close_input(&cat->avf); | ||||
|         return ret; | ||||
|     } | ||||
|     cat->cur_file = file; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user