You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avfilter/vf_frei0r: fix time when input is realigned
av_frame_copy doesn't copy the input's PTS property, which resulted in the frei0r filter always receiving the same static time. Example that has a static distortion without patch: ffmpeg -filter_complex "testsrc2=s=328x240:d=5,frei0r=distort0r" out.mp4
This commit is contained in:
committed by
Marton Balint
parent
5bf57a925c
commit
f8bfc20281
@@ -375,6 +375,10 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
||||
if (!in2)
|
||||
goto fail;
|
||||
av_frame_copy(in2, in);
|
||||
if (av_frame_copy_props(in2, in) < 0) {
|
||||
av_frame_free(&in2);
|
||||
goto fail;
|
||||
}
|
||||
av_frame_free(&in);
|
||||
in = in2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user