You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	lswr/swresample: Mention the actually supported formats when erroring out.
Fixes ticket #6779.
This commit is contained in:
		| @@ -240,7 +240,7 @@ av_cold int swr_init(struct SwrContext *s){ | ||||
|         &&s->int_sample_fmt != AV_SAMPLE_FMT_S64P | ||||
|         &&s->int_sample_fmt != AV_SAMPLE_FMT_FLTP | ||||
|         &&s->int_sample_fmt != AV_SAMPLE_FMT_DBLP){ | ||||
|         av_log(s, AV_LOG_ERROR, "Requested sample format %s is not supported internally, S16/S32/S64/FLT/DBL is supported\n", av_get_sample_fmt_name(s->int_sample_fmt)); | ||||
|         av_log(s, AV_LOG_ERROR, "Requested sample format %s is not supported internally, s16p/s32p/s64p/fltp/dblp are supported\n", av_get_sample_fmt_name(s->int_sample_fmt)); | ||||
|         return AVERROR(EINVAL); | ||||
|     } | ||||
|  | ||||
| @@ -276,7 +276,7 @@ av_cold int swr_init(struct SwrContext *s){ | ||||
|         && s->int_sample_fmt != AV_SAMPLE_FMT_FLTP | ||||
|         && s->int_sample_fmt != AV_SAMPLE_FMT_DBLP | ||||
|         && s->resample){ | ||||
|         av_log(s, AV_LOG_ERROR, "Resampling only supported with internal s16/s32/flt/dbl\n"); | ||||
|         av_log(s, AV_LOG_ERROR, "Resampling only supported with internal s16p/s32p/fltp/dblp\n"); | ||||
|         ret = AVERROR(EINVAL); | ||||
|         goto fail; | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user