avfilter/vf_histogram: call av_frame_copy_props()

pull/388/head
Paul B Mahol 2 years ago
parent c13d959343
commit bf23d530d2
  1. 2
      libavfilter/vf_histogram.c

@ -593,7 +593,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
memset(s->histogram, 0, s->histogram_size * sizeof(unsigned)); memset(s->histogram, 0, s->histogram_size * sizeof(unsigned));
} }
out->pts = in->pts; av_frame_copy_props(out, in);
av_frame_free(&in); av_frame_free(&in);
s->x_pos++; s->x_pos++;
if (s->x_pos >= s->width) { if (s->x_pos >= s->width) {

Loading…
Cancel
Save