[FFmpeg-cvslog] avfilter/vf_datascope: call av_frame_copy_props()

Paul B Mahol git at videolan.org
Fri Jan 27 20:45:28 EET 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed Jan 18 21:23:39 2023 +0100| [a749e43c86ea4fd217b035538435ba16956a729c] | committer: Paul B Mahol

avfilter/vf_datascope: call av_frame_copy_props()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a749e43c86ea4fd217b035538435ba16956a729c
---

 libavfilter/vf_datascope.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_datascope.c b/libavfilter/vf_datascope.c
index 0a605985f1..d4f441c0ab 100644
--- a/libavfilter/vf_datascope.c
+++ b/libavfilter/vf_datascope.c
@@ -322,7 +322,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         av_frame_free(&in);
         return AVERROR(ENOMEM);
     }
-    out->pts = in->pts;
+    av_frame_copy_props(out, in);
 
     ff_fill_rectangle(&s->draw, &s->black, out->data, out->linesize,
                       0, 0, outlink->w, outlink->h);



More information about the ffmpeg-cvslog mailing list