lavfi: make sure frame SAR matches the link value
This commit is contained in:
parent
afeb2468b2
commit
fcc33ada47
@ -984,6 +984,8 @@ int ff_filter_frame(AVFilterLink *link, AVFrame *frame)
|
|||||||
av_assert1(frame->width == link->w);
|
av_assert1(frame->width == link->w);
|
||||||
av_assert1(frame->height == link->h);
|
av_assert1(frame->height == link->h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
frame->sample_aspect_ratio = link->sample_aspect_ratio;
|
||||||
} else {
|
} else {
|
||||||
if (frame->format != link->format) {
|
if (frame->format != link->format) {
|
||||||
av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");
|
av_log(link->dst, AV_LOG_ERROR, "Format change is not supported\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user