1 Mar 2006 01:57
[PATCH] remove most of fprintf
Steve Lhomme <slhomme <at> divxcorp.com>
2006-03-01 00:57:41 GMT
2006-03-01 00:57:41 GMT
...and replace with av_log()
Index: libavcodec/cook.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/cook.c,v
retrieving revision 1.9
diff -u -r1.9 cook.c
--- libavcodec/cook.c 10 Feb 2006 11:59:38 -0000 1.9
+++ libavcodec/cook.c 1 Mar 2006 00:19:19 -0000
<at> <at> -1275,16 +1275,16 <at> <at>
/* Try to catch some obviously faulty streams, othervise it might be exploitable */
if (q->total_subbands > 53) {
- av_log(NULL,AV_LOG_ERROR,"total_subbands > 53, report sample!\n");
+ av_log(avctx,AV_LOG_ERROR,"total_subbands > 53, report sample!\n");
return -1;
}
if (q->subbands > 50) {
- av_log(NULL,AV_LOG_ERROR,"subbands > 50, report sample!\n");
+ av_log(avctx,AV_LOG_ERROR,"subbands > 50, report sample!\n");
return -1;
}
if ((q->samples_per_channel == 256) || (q->samples_per_channel == 512) || (q->samples_per_channel ==
1024)) {
} else {
- av_log(NULL,AV_LOG_ERROR,"unknown amount of samples_per_channel = %d, report sample!\n",q->samples_per_channel);
+ av_log(avctx,AV_LOG_ERROR,"unknown amount of samples_per_channel = %d, report sample!\n",q->samples_per_channel);
return -1;
(Continue reading)
RSS Feed