summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-11 23:05:14 +0200
committerwm4 <wm4@nowhere>2015-09-11 23:05:14 +0200
commit876e93d8b76cff7e9e941b77ccf06d91e9c7785b (patch)
treebe4dc51c90f18bace19916f98c8779992753ee53
parent4e0e24c3c27362939d9f88d3e22267afef5f6d4f (diff)
downloadmpv-876e93d8b76cff7e9e941b77ccf06d91e9c7785b.tar.bz2
mpv-876e93d8b76cff7e9e941b77ccf06d91e9c7785b.tar.xz
vf_lavfi: cosmetics: fix coding style
-rw-r--r--video/filter/vf_lavfi.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/video/filter/vf_lavfi.c b/video/filter/vf_lavfi.c
index 850280fdc3..f413cf2882 100644
--- a/video/filter/vf_lavfi.c
+++ b/video/filter/vf_lavfi.c
@@ -71,7 +71,7 @@ struct vf_priv_s {
AVRational timebase_out;
AVRational par_in;
- struct mp_tags* metadata;
+ struct mp_tags *metadata;
// for the lw wrapper
void *old_priv;
@@ -302,11 +302,11 @@ static struct mp_image *av_to_mp(struct vf_instance *vf, AVFrame *av_frame)
static void get_metadata_from_av_frame(struct vf_instance *vf, AVFrame *frame)
{
#if HAVE_AVFRAME_METADATA
- struct vf_priv_s *p = vf->priv;
- if (!p->metadata)
- p->metadata = talloc_zero(p, struct mp_tags);
+ struct vf_priv_s *p = vf->priv;
+ if (!p->metadata)
+ p->metadata = talloc_zero(p, struct mp_tags);
- mp_tags_copy_from_av_dictionary(p->metadata, av_frame_get_metadata(frame));
+ mp_tags_copy_from_av_dictionary(p->metadata, av_frame_get_metadata(frame));
#endif
}
@@ -363,12 +363,12 @@ static int control(vf_instance_t *vf, int request, void *data)
reset(vf);
return CONTROL_OK;
case VFCTRL_GET_METADATA:
- if (vf->priv && vf->priv->metadata) {
- *(struct mp_tags*) data = *vf->priv->metadata;
- return CONTROL_OK;
- } else {
- return CONTROL_NA;
- }
+ if (vf->priv && vf->priv->metadata) {
+ *(struct mp_tags *)data = *vf->priv->metadata;
+ return CONTROL_OK;
+ } else {
+ return CONTROL_NA;
+ }
}
return CONTROL_UNKNOWN;
}