mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-11-01 04:53:04 +08:00 
			
		
		
		
	alacenc: fix max_frame_size calculation for the final frame
This commit is contained in:
		| @@ -546,7 +546,7 @@ static int alac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, | |||||||
|  |  | ||||||
|     s->frame_size = frame->nb_samples; |     s->frame_size = frame->nb_samples; | ||||||
|  |  | ||||||
|     if (avctx->frame_size < DEFAULT_FRAME_SIZE) |     if (frame->nb_samples < DEFAULT_FRAME_SIZE) | ||||||
|         max_frame_size = get_max_frame_size(s->frame_size, avctx->channels, |         max_frame_size = get_max_frame_size(s->frame_size, avctx->channels, | ||||||
|                                             DEFAULT_SAMPLE_SIZE); |                                             DEFAULT_SAMPLE_SIZE); | ||||||
|     else |     else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Justin Ruggles
					Justin Ruggles