diff options
author | Diego Biurrun <diego@biurrun.de> | 2011-04-22 21:41:59 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2011-04-22 22:12:39 +0400 |
commit | d9dee728b8c50fb6dbff3701e1abcb2eac5895b3 (patch) | |
tree | d8edd5dc0de891aa2f920397f86a044105a8f245 /libavcodec | |
parent | 44f566b79afcbbb152ec21db667ea3d2f42e8f8d (diff) |
Use av_log_ask_for_sample() to request samples from users.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/atrac3.c | 2 | ||||
-rw-r--r-- | libavcodec/cook.c | 4 | ||||
-rw-r--r-- | libavcodec/loco.c | 2 | ||||
-rw-r--r-- | libavcodec/wnv1.c | 6 |
4 files changed, 9 insertions, 5 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 563352094d..78df5f1fb3 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -186,7 +186,7 @@ static int decode_bytes(const uint8_t* inbuffer, uint8_t* out, int bytes){ obuf[i] = c ^ buf[i]; if (off) - av_log(NULL,AV_LOG_DEBUG,"Offset of %d not handled, post sample on ffmpeg-dev.\n",off); + av_log_ask_for_sample(NULL, "Offset of %d not handled.\n", off); return off; } diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 0e792affca..282ca1029d 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -1268,7 +1268,9 @@ static av_cold int cook_decode_init(AVCodecContext *avctx) /* Try to catch some obviously faulty streams, othervise it might be exploitable */ if ((q->samples_per_channel == 256) || (q->samples_per_channel == 512) || (q->samples_per_channel == 1024)) { } else { - av_log(avctx,AV_LOG_ERROR,"unknown amount of samples_per_channel = %d, report sample!\n",q->samples_per_channel); + av_log_ask_for_sample(avctx, + "unknown amount of samples_per_channel = %d\n", + q->samples_per_channel); return -1; } diff --git a/libavcodec/loco.c b/libavcodec/loco.c index 0733d09e49..32b1bfc9b1 100644 --- a/libavcodec/loco.c +++ b/libavcodec/loco.c @@ -248,7 +248,7 @@ static av_cold int decode_init(AVCodecContext *avctx){ break; default: l->lossy = AV_RL32(avctx->extradata + 8); - av_log(avctx, AV_LOG_INFO, "This is LOCO codec version %i, please upload file for study\n", version); + av_log_ask_for_sample(avctx, "This is LOCO codec version %i.\n", version); } l->mode = AV_RL32(avctx->extradata + 4); diff --git a/libavcodec/wnv1.c b/libavcodec/wnv1.c index 7c0a537082..65ad9cdd12 100644 --- a/libavcodec/wnv1.c +++ b/libavcodec/wnv1.c @@ -96,11 +96,13 @@ static int decode_frame(AVCodecContext *avctx, else { l->shift = 8 - (buf[2] >> 4); if (l->shift > 4) { - av_log(avctx, AV_LOG_ERROR, "Unknown WNV1 frame header value %i, please upload file for study\n", buf[2] >> 4); + av_log_ask_for_sample(avctx, "Unknown WNV1 frame header value %i\n", + buf[2] >> 4); l->shift = 4; } if (l->shift < 1) { - av_log(avctx, AV_LOG_ERROR, "Unknown WNV1 frame header value %i, please upload file for study\n", buf[2] >> 4); + av_log_ask_for_sample(avctx, "Unknown WNV1 frame header value %i\n", + buf[2] >> 4); l->shift = 1; } } |