You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	avfilter/af_stereotools: fix logic fail
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
		| @@ -110,7 +110,7 @@ static int config_input(AVFilterLink *inlink) | ||||
|     StereoToolsContext *s = ctx->priv; | ||||
|  | ||||
|     s->length = 2 * inlink->sample_rate * 0.05; | ||||
|     if (s->length <= 1 && s->length & 1) { | ||||
|     if (s->length <= 1 || s->length & 1) { | ||||
|         av_log(ctx, AV_LOG_ERROR, "sample rate is too small\n"); | ||||
|         return AVERROR(EINVAL); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user