summaryrefslogtreecommitdiff
path: root/libavcodec/cook.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-04-22 19:41:59 +0200
committerDiego Biurrun <diego@biurrun.de>2011-04-22 20:12:39 +0200
commitd9dee728b8c50fb6dbff3701e1abcb2eac5895b3 (patch)
treed8edd5dc0de891aa2f920397f86a044105a8f245 /libavcodec/cook.c
parent44f566b79afcbbb152ec21db667ea3d2f42e8f8d (diff)
Use av_log_ask_for_sample() to request samples from users.
Diffstat (limited to 'libavcodec/cook.c')
-rw-r--r--libavcodec/cook.c4
1 files changed, 3 insertions, 1 deletions
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;
}