Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-09-12 23:00:34 +0400
committerNicolas George <nicolas.george@normalesup.org>2012-09-13 22:09:53 +0400
commit8ad54a44eb14553911ca737ee5cb806f616ff7fe (patch)
tree313eb19303b24329569edda576a385fec6853832 /libavfilter/video.c
parentc262ddb8c5e2060b76a84e70a7e46fa134c1799a (diff)
lavfi: check that buffer and link properties match.
Diffstat (limited to 'libavfilter/video.c')
-rw-r--r--libavfilter/video.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/video.c b/libavfilter/video.c
index 5294c1b62d..d0c95cd148 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -249,6 +249,10 @@ 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 (link->closed) {
avfilter_unref_buffer(picref);
return AVERROR_EOF;