Revision 70fb031c libavcodec/tta.c
libavcodec/tta.c | ||
---|---|---|
247 | 247 |
if (s->is_float) |
248 | 248 |
{ |
249 | 249 |
avctx->sample_fmt = AV_SAMPLE_FMT_FLT; |
250 |
av_log(s->avctx, AV_LOG_ERROR, "Unsupported sample format. Please contact the developers.\n");
|
|
250 |
av_log_ask_for_sample(s->avctx, "Unsupported sample format.\n");
|
|
251 | 251 |
return -1; |
252 | 252 |
} |
253 | 253 |
else switch(s->bps) { |
... | ... | |
256 | 256 |
// case 3: avctx->sample_fmt = AV_SAMPLE_FMT_S24; break; |
257 | 257 |
case 4: avctx->sample_fmt = AV_SAMPLE_FMT_S32; break; |
258 | 258 |
default: |
259 |
av_log(s->avctx, AV_LOG_ERROR, "Invalid/unsupported sample format. Please contact the developers.\n"); |
|
259 |
av_log_ask_for_sample(s->avctx, |
|
260 |
"Invalid/unsupported sample format.\n"); |
|
260 | 261 |
return -1; |
261 | 262 |
} |
262 | 263 |
|
Also available in: Unified diff