You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Merge commit '42cc6cefd315c1556e2a52f7ebe2f766ec82b790'
* commit '42cc6cefd315c1556e2a52f7ebe2f766ec82b790': avconv: report the error for codec open failure Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							
								
								
									
										10
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								ffmpeg.c
									
									
									
									
									
								
							| @@ -1967,10 +1967,16 @@ static int init_input_stream(int ist_index, char *error, int error_len) | ||||
|         if (!av_dict_get(ist->opts, "threads", NULL, 0)) | ||||
|             av_dict_set(&ist->opts, "threads", "auto", 0); | ||||
|         if ((ret = avcodec_open2(ist->st->codec, codec, &ist->opts)) < 0) { | ||||
|             char errbuf[128]; | ||||
|             if (ret == AVERROR_EXPERIMENTAL) | ||||
|                 abort_codec_experimental(codec, 0); | ||||
|             snprintf(error, error_len, "Error while opening decoder for input stream #%d:%d", | ||||
|                     ist->file_index, ist->st->index); | ||||
|  | ||||
|             av_strerror(ret, errbuf, sizeof(errbuf)); | ||||
|  | ||||
|             snprintf(error, error_len, | ||||
|                      "Error while opening decoder for input stream " | ||||
|                      "#%d:%d : %s", | ||||
|                      ist->file_index, ist->st->index, errbuf); | ||||
|             return ret; | ||||
|         } | ||||
|         assert_avoptions(ist->opts); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user