History

lswr/swresample: Mention the actually supported formats when erroring out.

Fixes ticket #6779.

Carl Eugen Hoyos committed 9 years ago

Commit 85182941 parent 7f9de7b1 file · +2 −2Browse files

Unified · Split

libswresample/swresample.c+2−2
@@ -240,7 +240,7 @@ av_cold int swr_init(struct SwrContext *s){ · 239 unmodified lines
240240 &&s->int_sample_fmt != AV_SAMPLE_FMT_S64P
241241 &&s->int_sample_fmt != AV_SAMPLE_FMT_FLTP
242242 &&s->int_sample_fmt != AV_SAMPLE_FMT_DBLP){
243− 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));
243+ 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));
244244 return AVERROR(EINVAL);
245245 }
246246
@@ -276,7 +276,7 @@ av_cold int swr_init(struct SwrContext *s){ · 29 unmodified lines
276276 && s->int_sample_fmt != AV_SAMPLE_FMT_FLTP
277277 && s->int_sample_fmt != AV_SAMPLE_FMT_DBLP
278278 && s->resample){
279− av_log(s, AV_LOG_ERROR, "Resampling only supported with internal s16/s32/flt/dbl\n");
279+ av_log(s, AV_LOG_ERROR, "Resampling only supported with internal s16p/s32p/fltp/dblp\n");
280280 ret = AVERROR(EINVAL);
281281 goto fail;
282282 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t