nsvdec: 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:
		
							parent
							
								
									86eef55878
								
							
						
					
					
						commit
						a1f1f56ef0
					
				@ -618,7 +618,7 @@ null_chunk_retry:
 | 
				
			|||||||
                    st[NSV_ST_AUDIO]->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
 | 
					                    st[NSV_ST_AUDIO]->codecpar->codec_id = AV_CODEC_ID_PCM_U8;
 | 
				
			||||||
                samplerate /= 4;/* UGH ??? XXX */
 | 
					                samplerate /= 4;/* UGH ??? XXX */
 | 
				
			||||||
                channels = 1;
 | 
					                channels = 1;
 | 
				
			||||||
                st[NSV_ST_AUDIO]->codecpar->channels = channels;
 | 
					                st[NSV_ST_AUDIO]->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO;
 | 
				
			||||||
                st[NSV_ST_AUDIO]->codecpar->sample_rate = samplerate;
 | 
					                st[NSV_ST_AUDIO]->codecpar->sample_rate = samplerate;
 | 
				
			||||||
                av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate);
 | 
					                av_log(s, AV_LOG_TRACE, "NSV RAWAUDIO: bps %d, nchan %d, srate %d\n", bps, channels, samplerate);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user