You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avcodec/pcm: Remove always-false check
None of the decoders here have the AV_CODEC_CAP_CHANNEL_CONF set, so that it is already checked generically that the number of channels is positive. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
		| @@ -254,11 +254,6 @@ static av_cold int pcm_decode_init(AVCodecContext *avctx) | ||||
|     AVFloatDSPContext *fdsp; | ||||
|     int i; | ||||
|  | ||||
|     if (avctx->ch_layout.nb_channels <= 0) { | ||||
|         av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n"); | ||||
|         return AVERROR(EINVAL); | ||||
|     } | ||||
|  | ||||
|     switch (avctx->codec_id) { | ||||
|     case AV_CODEC_ID_PCM_ALAW: | ||||
|         for (i = 0; i < 256; i++) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user