Skip to content

Commit

Permalink
vf_vapoursynth: pass DoVi metadata to Vapoursynth
Browse files Browse the repository at this point in the history
  • Loading branch information
chainikdn committed Oct 7, 2023
1 parent f44414e commit 7de3efc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions video/filter/vf_vapoursynth.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

#include <libavutil/rational.h>
#include <libavutil/cpu.h>
#include <libavutil/buffer.h>

#include "common/msg.h"
#include "options/m_option.h"
Expand Down Expand Up @@ -218,6 +219,8 @@ static int set_vs_frame_props(struct priv *p, VSFrameRef *frame,
p->vsapi->propSetInt(map, "_DurationNum", dur_num, 0);
p->vsapi->propSetInt(map, "_DurationDen", dur_den, 0);
p->vsapi->propSetInt(map, "__frameno", frameno, 0);
if(img->dovi && img->dovi->size)
p->vsapi->propSetData(map,"_DoVi", img->dovi->data, img->dovi->size, 0);
copy_mp_to_vs_frame_props_map(p, map, img);
return 0;
}
Expand Down

0 comments on commit 7de3efc

Please sign in to comment.