fftools/ffmpeg_demux: skip unused/attachment streams in final stats
No useful information can be printed for them.
This commit is contained in:
		
							parent
							
								
									d43ae45de0
								
							
						
					
					
						commit
						335688a3d3
					
				@ -781,6 +781,9 @@ static void demux_final_stats(Demuxer *d)
 | 
				
			|||||||
        DemuxStream  *ds = ds_from_ist(ist);
 | 
					        DemuxStream  *ds = ds_from_ist(ist);
 | 
				
			||||||
        enum AVMediaType type = ist->par->codec_type;
 | 
					        enum AVMediaType type = ist->par->codec_type;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (ist->discard || type == AVMEDIA_TYPE_ATTACHMENT)
 | 
				
			||||||
 | 
					            continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        total_size    += ds->data_size;
 | 
					        total_size    += ds->data_size;
 | 
				
			||||||
        total_packets += ds->nb_packets;
 | 
					        total_packets += ds->nb_packets;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user