Skip to content

Commit 3d3d1ff

Browse files
committed
vcf/deint: set metadata to progressive
refer to GH-378
1 parent 752cc53 commit 3d3d1ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/vo_postprocess/deinterlace.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include "lib_common.h"
4848
#include "utils/color_out.h"
4949
#include "video.h"
50+
#include "video_frame.h"
5051
#include "vo_postprocess.h"
5152
struct module;
5253

@@ -149,7 +150,9 @@ static struct video_frame * deinterlace_getf(void *state)
149150
static bool deinterlace_postprocess(void *state, struct video_frame *in, struct video_frame *out, int req_pitch)
150151
{
151152
assert (req_pitch == vc_get_linesize(in->tiles[0].width, in->color_spec));
152-
assert (video_desc_eq(video_desc_from_frame(out), video_desc_from_frame(in)));
153+
assert(video_desc_eq_excl_param(video_desc_from_frame(out),
154+
video_desc_from_frame(in),
155+
PARAM_INTERLACING));
153156
assert (in->tiles[0].data_len <= vc_get_linesize(in->tiles[0].width, in->color_spec) * in->tiles[0].height);
154157
assert (out->tiles[0].data_len <= vc_get_linesize(in->tiles[0].width, in->color_spec) * in->tiles[0].height);
155158

@@ -174,6 +177,7 @@ static struct video_frame *cf_deinterlace_filter(void *state, struct video_frame
174177
UNUSED(state);
175178

176179
struct video_frame *out = vf_alloc_desc_data(video_desc_from_frame(f));
180+
out->interlacing = PROGRESSIVE;
177181
out->callbacks.dispose = vf_free;
178182
if (!deinterlace_postprocess(state, f, out, vc_get_linesize(f->tiles[0].width, f->color_spec))) {
179183
VIDEO_FRAME_DISPOSE(f);

0 commit comments

Comments
 (0)