[soc]: r3993 - libavfilter/vf_format.c
20 Jan
2009
20 Jan
'09
9:14 p.m.
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; }
6476
Age (days ago)
6476
Last active (days ago)
0 comments
1 participants
participants (1)
-
stefano