You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	alac : fix case where bits_per_sample is not set.
Patch by Baptiste Originally committed as revision 15275 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
				
					committed by
					
						 Jai Menon
						Jai Menon
					
				
			
			
				
	
			
			
			
						parent
						
							c7e34ddc42
						
					
				
				
					commit
					9345ae6f78
				
			| @@ -597,7 +597,7 @@ static av_cold int alac_decode_init(AVCodecContext * avctx) | ||||
|     alac->context_initialized = 0; | ||||
|  | ||||
|     alac->numchannels = alac->avctx->channels; | ||||
|     alac->bytespersample = (avctx->bits_per_coded_sample / 8) * alac->numchannels; | ||||
|     alac->bytespersample = 2 * alac->numchannels; | ||||
|     avctx->sample_fmt = SAMPLE_FMT_S16; | ||||
|  | ||||
|     return 0; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user