[FFmpeg-cvslog] r25181 - trunk/libavfilter/defaults.c
stefano
subversion
Fri Sep 24 22:01:38 CEST 2010
Author: stefano
Date: Fri Sep 24 22:01:38 2010
New Revision: 25181
Log:
Add missing NULL checks, fix crash.
Modified:
trunk/libavfilter/defaults.c
Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c Fri Sep 24 20:04:21 2010 (r25180)
+++ trunk/libavfilter/defaults.c Fri Sep 24 22:01:38 2010 (r25181)
@@ -282,8 +282,8 @@ void avfilter_set_common_formats(AVFilte
int avfilter_default_query_formats(AVFilterContext *ctx)
{
- enum AVMediaType type = ctx->inputs [0] ? ctx->inputs [0]->type :
- ctx->outputs[0] ? ctx->outputs[0]->type :
+ enum AVMediaType type = ctx->inputs && ctx->inputs [0] ? ctx->inputs [0]->type :
+ ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
AVMEDIA_TYPE_VIDEO;
avfilter_set_common_formats(ctx, avfilter_all_formats(type));
More information about the ffmpeg-cvslog
mailing list