mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/f_metadata: remove unneeded code
Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
e700038990
commit
81271b3cce
@ -320,13 +320,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
av_dict_set(metadata, s->key, s->value, 0);
|
av_dict_set(metadata, s->key, s->value, 0);
|
||||||
}
|
}
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
break;
|
|
||||||
case METADATA_MODIFY:
|
case METADATA_MODIFY:
|
||||||
if (e && e->value) {
|
if (e && e->value) {
|
||||||
av_dict_set(metadata, s->key, s->value, 0);
|
av_dict_set(metadata, s->key, s->value, 0);
|
||||||
}
|
}
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
break;
|
|
||||||
case METADATA_PRINT:
|
case METADATA_PRINT:
|
||||||
if (!s->key && e) {
|
if (!s->key && e) {
|
||||||
s->print(ctx, "frame:%-4"PRId64" pts:%-7s pts_time:%s\n",
|
s->print(ctx, "frame:%-4"PRId64" pts:%-7s pts_time:%s\n",
|
||||||
@ -341,7 +339,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
s->print(ctx, "%s=%s\n", s->key, e->value);
|
s->print(ctx, "%s=%s\n", s->key, e->value);
|
||||||
}
|
}
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
break;
|
|
||||||
case METADATA_DELETE:
|
case METADATA_DELETE:
|
||||||
if (!s->key) {
|
if (!s->key) {
|
||||||
av_dict_free(metadata);
|
av_dict_free(metadata);
|
||||||
@ -349,7 +346,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
|
|||||||
av_dict_set(metadata, s->key, NULL, 0);
|
av_dict_set(metadata, s->key, NULL, 0);
|
||||||
}
|
}
|
||||||
return ff_filter_frame(outlink, frame);
|
return ff_filter_frame(outlink, frame);
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
av_assert0(0);
|
av_assert0(0);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user