cmdutils: fix uninitialized variable (type) warning.
This commit is contained in:
		
							parent
							
								
									7c14c24250
								
							
						
					
					
						commit
						0baf651bc1
					
				| @ -805,6 +805,7 @@ int check_stream_specifier(AVFormatContext *s, AVStream *st, const char *spec) | |||||||
|         case 'a': type = AVMEDIA_TYPE_AUDIO;    break; |         case 'a': type = AVMEDIA_TYPE_AUDIO;    break; | ||||||
|         case 's': type = AVMEDIA_TYPE_SUBTITLE; break; |         case 's': type = AVMEDIA_TYPE_SUBTITLE; break; | ||||||
|         case 'd': type = AVMEDIA_TYPE_DATA;     break; |         case 'd': type = AVMEDIA_TYPE_DATA;     break; | ||||||
|  |         default: abort(); // never reached, silence warning
 | ||||||
|         } |         } | ||||||
|         if (type != st->codec->codec_type) |         if (type != st->codec->codec_type) | ||||||
|             return 0; |             return 0; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user