You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	dtshddec: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 James Almer
						James Almer
					
				
			
			
				
	
			
			
			
						parent
						
							0e289fafa7
						
					
				
				
					commit
					7e531b24de
				
			| @@ -104,7 +104,7 @@ static int dtshd_read_header(AVFormatContext *s) | ||||
|             duration *= avio_rb16(pb); // samples_per_frames | ||||
|             st->duration = duration; | ||||
|             avio_skip(pb, 5); | ||||
|             st->codecpar->channels = ff_dca_count_chs_for_mask(avio_rb16(pb)); | ||||
|             st->codecpar->ch_layout.nb_channels = ff_dca_count_chs_for_mask(avio_rb16(pb)); | ||||
|             st->codecpar->initial_padding = avio_rb16(pb); | ||||
|             avio_skip(pb, chunk_size - 21); | ||||
|             break; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user