You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	mp3: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
		
				
					committed by
					
						 James Almer
						James Almer
					
				
			
			
				
	
			
			
			
						parent
						
							c26a7507aa
						
					
				
				
					commit
					af88f91d72
				
			| @@ -175,7 +175,7 @@ static int mp3_write_xing(AVFormatContext *s) | ||||
|         return -1; | ||||
|     } | ||||
|  | ||||
|     switch (par->channels) { | ||||
|     switch (par->ch_layout.nb_channels) { | ||||
|     case 1:  channels = MPA_MONO;                                          break; | ||||
|     case 2:  channels = MPA_STEREO;                                        break; | ||||
|     default: av_log(s, AV_LOG_WARNING, "Unsupported number of channels, " | ||||
|   | ||||
		Reference in New Issue
	
	Block a user