diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-04-21 19:38:49 +0200 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-04-21 19:58:54 +0200 |
commit | 70fb031ce27ce200026de2ea77ec038e2c2e141f (patch) | |
tree | 26522fb83f66d3d0432219ec4f555ff674b7bb0b /libavcodec/tta.c | |
parent | 8d67218bd73744c367450d8b8ecc5a6e6c42bd11 (diff) | |
download | ffmpeg-70fb031ce27ce200026de2ea77ec038e2c2e141f.tar.gz |
Use av_log_ask_for_sample() where appropriate.
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c index fbfc59e60a..57f5818d7b 100644 --- a/libavcodec/tta.c +++ b/libavcodec/tta.c @@ -247,7 +247,7 @@ static av_cold int tta_decode_init(AVCodecContext * avctx) if (s->is_float) { avctx->sample_fmt = AV_SAMPLE_FMT_FLT; - av_log(s->avctx, AV_LOG_ERROR, "Unsupported sample format. Please contact the developers.\n"); + av_log_ask_for_sample(s->avctx, "Unsupported sample format.\n"); return -1; } else switch(s->bps) { @@ -256,7 +256,8 @@ static av_cold int tta_decode_init(AVCodecContext * avctx) // case 3: avctx->sample_fmt = AV_SAMPLE_FMT_S24; break; case 4: avctx->sample_fmt = AV_SAMPLE_FMT_S32; break; default: - av_log(s->avctx, AV_LOG_ERROR, "Invalid/unsupported sample format. Please contact the developers.\n"); + av_log_ask_for_sample(s->avctx, + "Invalid/unsupported sample format.\n"); return -1; } |