Skip to content

Commit

Permalink
lavfi: make sure frame SAR matches the link value
Browse files Browse the repository at this point in the history
  • Loading branch information
elenril committed Jul 11, 2023
1 parent afeb246 commit fcc33ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavfilter/avfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit fcc33ad

Please sign in to comment.