You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	s302m: use nondeprecated audio sample format API
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
		
				
					committed by
					
						 Anton Khirnov
						Anton Khirnov
					
				
			
			
				
	
			
			
			
						parent
						
							ec6402b7c5
						
					
				
				
					commit
					8f9d3f6d9a
				
			| @@ -58,9 +58,9 @@ static int s302m_parse_frame_header(AVCodecContext *avctx, const uint8_t *buf, | ||||
|     /* Set output properties */ | ||||
|     avctx->bits_per_coded_sample = bits; | ||||
|     if (bits > 16) | ||||
|         avctx->sample_fmt = SAMPLE_FMT_S32; | ||||
|         avctx->sample_fmt = AV_SAMPLE_FMT_S32; | ||||
|     else | ||||
|         avctx->sample_fmt = SAMPLE_FMT_S16; | ||||
|         avctx->sample_fmt = AV_SAMPLE_FMT_S16; | ||||
|  | ||||
|     avctx->channels    = channels; | ||||
|     avctx->sample_rate = 48000; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user