aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-07-06 21:46:25 +0200
committerAnton Khirnov <anton@khirnov.net>2023-07-11 19:28:18 +0200
commitfcc33ada47e594d6b35b71c4a998af796f56492e (patch)
tree11b3a2d0ec8c8a56e067ca973fc4cc30e2347582 /libavfilter
parentafeb2468b251604aa249cba23f0fac022f54195e (diff)
downloadffmpeg-fcc33ada47e594d6b35b71c4a998af796f56492e.tar.gz
lavfi: make sure frame SAR matches the link value
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 2 insertions, 0 deletions
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");