lavf/concatdec: fix crash in case a file in script cannot be opened
This commit is contained in:
		
							parent
							
								
									8937af7b6f
								
							
						
					
					
						commit
						aeccb522eb
					
				| @ -279,6 +279,9 @@ static int concat_read_packet(AVFormatContext *avf, AVPacket *pkt) | ||||
|             (ret = open_next_file(avf)) < 0) | ||||
|             break; | ||||
|     } | ||||
|     if (ret < 0) | ||||
|         return ret; | ||||
| 
 | ||||
|     delta = av_rescale_q(cat->cur_file->start_time - cat->avf->start_time, | ||||
|                          AV_TIME_BASE_Q, | ||||
|                          cat->avf->streams[pkt->stream_index]->time_base); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user