[FFmpeg-cvslog] lavfi: make sure frame SAR matches the link value
Anton Khirnov
git at videolan.org
Tue Jul 11 20:28:59 EEST 2023
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Thu Jul 6 21:46:25 2023 +0200| [fcc33ada47e594d6b35b71c4a998af796f56492e] | committer: Anton Khirnov
lavfi: make sure frame SAR matches the link value
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fcc33ada47e594d6b35b71c4a998af796f56492e
---
libavfilter/avfilter.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 0141b64cbc..04887b6ee5 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -984,6 +984,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
av_assert1(frame->width == link->w);
av_assert1(frame->height == link->h);
}
+
+ frame->sample_aspect_ratio = link->sample_aspect_ratio;
} else {
if (frame->format != link->format) {
av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");
More information about the ffmpeg-cvslog
mailing list