avformat/utils: avoid discarded streams in av_find_default_stream_index()
Fixes Ticket2010 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
		
							parent
							
								
									ba54512a10
								
							
						
					
					
						commit
						ff6841c6bb
					
				@ -1597,6 +1597,9 @@ int av_find_default_stream_index(AVFormatContext *s)
 | 
			
		||||
                score += 50;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (st->discard != AVDISCARD_ALL)
 | 
			
		||||
            score += 200;
 | 
			
		||||
 | 
			
		||||
        if (score > best_score) {
 | 
			
		||||
            best_score = score;
 | 
			
		||||
            best_stream = i;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user