summaryrefslogtreecommitdiffstats
path: root/libavfilter/video.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-09-12 21:00:34 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-09-13 20:09:53 +0200
commit8ad54a44eb14553911ca737ee5cb806f616ff7fe (patch)
tree313eb19303b24329569edda576a385fec6853832 /libavfilter/video.c
parentc262ddb8c5e2060b76a84e70a7e46fa134c1799a (diff)
downloadffmpeg-streaming-8ad54a44eb14553911ca737ee5cb806f616ff7fe.zip
ffmpeg-streaming-8ad54a44eb14553911ca737ee5cb806f616ff7fe.tar.gz
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 5294c1b..d0c95cd 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;
OpenPOWER on IntegriCloud