summaryrefslogtreecommitdiff
path: root/libavfilter/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index ebc8cf4fc6..7a0cce9814 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -249,9 +249,11 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
FF_TPRINTF_START(NULL, start_frame); ff_tlog_link(NULL, link, 0); ff_tlog(NULL, " "); ff_tlog_ref(NULL, picref, 1);
- av_assert1(picref->format == link->format);
- av_assert1(picref->video->w == link->w);
- av_assert1(picref->video->h == link->h);
+ if (strcmp(link->dst->filter->name, "scale")) {
+ av_assert1(picref->format == link->format);
+ av_assert1(picref->video->w == link->w);
+ av_assert1(picref->video->h == link->h);
+ }
if (link->closed) {
avfilter_unref_buffer(picref);