diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-04-08 18:40:42 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-04-08 18:54:00 +0200 |
commit | 5a9de38e54419d459d242aaac3a6218d8877f9fd (patch) | |
tree | 8a10f9d6d5274247e3b39c6f9fd0380b1fe85bed /libavfilter/vf_waveform.c | |
parent | a700dc37357842b35c78c7276d3996deb32d7e33 (diff) | |
download | ffmpeg-5a9de38e54419d459d242aaac3a6218d8877f9fd.tar.gz |
avfilter/vf_waveform: copy props from input frame
Diffstat (limited to 'libavfilter/vf_waveform.c')
-rw-r--r-- | libavfilter/vf_waveform.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c index d0fd00ebf4..37eb0679d0 100644 --- a/libavfilter/vf_waveform.c +++ b/libavfilter/vf_waveform.c @@ -3399,8 +3399,6 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) av_frame_free(&in); return AVERROR(ENOMEM); } - out->pts = in->pts; - out->color_range = AVCOL_RANGE_JPEG; for (k = 0; k < s->dcomp; k++) { if (s->bits <= 8) { @@ -3484,6 +3482,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } s->graticulef(s, out); + av_frame_copy_props(out, in); + out->color_range = AVCOL_RANGE_JPEG; av_frame_free(&in); out->sample_aspect_ratio = outlink->sample_aspect_ratio; return ff_filter_frame(outlink, out); |