mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi: use av_default_item_name() as filter private context logger
avfilter_default_filter_name() is supposed to access an AVFilterContext struct, if used with a private struct it will cause a crash since it will access fields which are non defined in the private struct.
This commit is contained in:
parent
38c9ebd2a9
commit
0f0f3bd1e0
|
@ -55,7 +55,7 @@ static const AVOption options[] = {
|
||||||
|
|
||||||
static const AVClass aformat_class = {
|
static const AVClass aformat_class = {
|
||||||
.class_name = "aformat filter",
|
.class_name = "aformat filter",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = options,
|
.option = options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
.category = AV_CLASS_CATEGORY_FILTER,
|
.category = AV_CLASS_CATEGORY_FILTER,
|
||||||
|
|
|
@ -186,7 +186,7 @@ static const AVOption options[] = {
|
||||||
|
|
||||||
static const AVClass amix_class = {
|
static const AVClass amix_class = {
|
||||||
.class_name = "amix filter",
|
.class_name = "amix filter",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = options,
|
.option = options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,7 +50,7 @@ static const AVOption options[] = {
|
||||||
|
|
||||||
static const AVClass async_class = {
|
static const AVClass async_class = {
|
||||||
.class_name = "asyncts filter",
|
.class_name = "asyncts filter",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = options,
|
.option = options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
};
|
};
|
||||||
|
|
|
@ -50,7 +50,7 @@ static const AVOption silencedetect_options[] = {
|
||||||
|
|
||||||
static const AVClass silencedetect_class = {
|
static const AVClass silencedetect_class = {
|
||||||
.class_name = "SilenceDetectContext",
|
.class_name = "SilenceDetectContext",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = silencedetect_options,
|
.option = silencedetect_options,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ static const AVOption eval_options[]= {
|
||||||
|
|
||||||
static const AVClass eval_class = {
|
static const AVClass eval_class = {
|
||||||
"AEvalSrcContext",
|
"AEvalSrcContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
eval_options
|
eval_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ static const AVOption anullsrc_options[]= {
|
||||||
|
|
||||||
static const AVClass anullsrc_class = {
|
static const AVClass anullsrc_class = {
|
||||||
"ANullSrcContext",
|
"ANullSrcContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
anullsrc_options
|
anullsrc_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
static const AVClass filtergraph_class = {
|
static const AVClass filtergraph_class = {
|
||||||
.class_name = "AVFilterGraph",
|
.class_name = "AVFilterGraph",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -255,7 +255,7 @@ static const AVOption audio_options[] = {
|
||||||
|
|
||||||
static const AVClass abuffer_class = {
|
static const AVClass abuffer_class = {
|
||||||
.class_name = "abuffer source",
|
.class_name = "abuffer source",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = audio_options,
|
.option = audio_options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
.category = AV_CLASS_CATEGORY_FILTER,
|
.category = AV_CLASS_CATEGORY_FILTER,
|
||||||
|
|
|
@ -56,7 +56,7 @@ static const AVOption ass_options[] = {
|
||||||
|
|
||||||
static const AVClass ass_class = {
|
static const AVClass ass_class = {
|
||||||
"AssContext",
|
"AssContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
ass_options
|
ass_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -59,7 +59,7 @@ static const AVOption blackdetect_options[] = {
|
||||||
|
|
||||||
static const AVClass blackdetect_class = {
|
static const AVClass blackdetect_class = {
|
||||||
.class_name = "BlackDetectContext",
|
.class_name = "BlackDetectContext",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = blackdetect_options,
|
.option = blackdetect_options,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ static const AVOption delogo_options[]= {
|
||||||
|
|
||||||
static const AVClass delogo_class = {
|
static const AVClass delogo_class = {
|
||||||
.class_name = "DelogoContext",
|
.class_name = "DelogoContext",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = delogo_options,
|
.option = delogo_options,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ static const AVOption drawtext_options[]= {
|
||||||
|
|
||||||
static const AVClass drawtext_class = {
|
static const AVClass drawtext_class = {
|
||||||
"DrawTextContext",
|
"DrawTextContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
drawtext_options
|
drawtext_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -71,7 +71,7 @@ static const AVOption fade_options[] = {
|
||||||
|
|
||||||
static const AVClass fade_class = {
|
static const AVClass fade_class = {
|
||||||
"FadeContext",
|
"FadeContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
fade_options
|
fade_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ static const AVOption options[] = {
|
||||||
|
|
||||||
static const AVClass class = {
|
static const AVClass class = {
|
||||||
.class_name = "FPS filter",
|
.class_name = "FPS filter",
|
||||||
.item_name = avfilter_default_filter_name,
|
.item_name = av_default_item_name,
|
||||||
.option = options,
|
.option = options,
|
||||||
.version = LIBAVUTIL_VERSION_INT,
|
.version = LIBAVUTIL_VERSION_INT,
|
||||||
};
|
};
|
||||||
|
|
|
@ -91,7 +91,7 @@ static const AVOption lut_options[] = {
|
||||||
|
|
||||||
static const AVClass lut_class = {
|
static const AVClass lut_class = {
|
||||||
"LutContext",
|
"LutContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
lut_options
|
lut_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -103,7 +103,7 @@ static const AVOption overlay_options[] = {
|
||||||
|
|
||||||
static const AVClass overlay_class = {
|
static const AVClass overlay_class = {
|
||||||
"OverlayContext",
|
"OverlayContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
overlay_options
|
overlay_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -78,7 +78,7 @@ static const AVOption cellauto_options[] = {
|
||||||
|
|
||||||
static const AVClass cellauto_class = {
|
static const AVClass cellauto_class = {
|
||||||
"CellAutoContext",
|
"CellAutoContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
cellauto_options
|
cellauto_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ static const AVOption life_options[] = {
|
||||||
|
|
||||||
static const AVClass life_class = {
|
static const AVClass life_class = {
|
||||||
"LifeContext",
|
"LifeContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
life_options
|
life_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ static const AVOption mandelbrot_options[] = {
|
||||||
|
|
||||||
static const AVClass mandelbrot_class = {
|
static const AVClass mandelbrot_class = {
|
||||||
"MBContext",
|
"MBContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
mandelbrot_options
|
mandelbrot_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ static const AVOption mptestsrc_options[]= {
|
||||||
|
|
||||||
static const AVClass mptestsrc_class = {
|
static const AVClass mptestsrc_class = {
|
||||||
"MPTestContext",
|
"MPTestContext",
|
||||||
avfilter_default_filter_name,
|
av_default_item_name,
|
||||||
mptestsrc_options
|
mptestsrc_options
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue