[FFmpeg-soc] [soc]: r3993 - libavfilter/vf_format.c
stefano
subversion at mplayerhq.hu
Tue Jan 20 22:14:32 CET 2009
Author: stefano
Date: Tue Jan 20 22:14:32 2009
New Revision: 3993
Log:
Fix the check for an unknown pixel format and the resulting buffer
underflow/crash.
Modified:
libavfilter/vf_format.c
Modified: libavfilter/vf_format.c
==============================================================================
--- libavfilter/vf_format.c Mon Jan 19 19:08:16 2009 (r3992)
+++ libavfilter/vf_format.c Tue Jan 20 22:14:32 2009 (r3993)
@@ -53,7 +53,7 @@ static int init(AVFilterContext *ctx, co
sep ++;
}
- if(fmt >= PIX_FMT_NB) {
+ if(fmt == PIX_FMT_NONE) {
av_log(ctx, AV_LOG_ERROR, "unknown pixel format\n");
continue;
}
More information about the FFmpeg-soc
mailing list