summaryrefslogtreecommitdiff
path: root/src/Xv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Xv.c')
-rw-r--r--src/Xv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Xv.c b/src/Xv.c
index 2a7e6c5..dc1e5f9 100644
--- a/src/Xv.c
+++ b/src/Xv.c
@@ -357,6 +357,10 @@ XvQueryEncodings(
}
_XRead(dpy, buffer, (long) size);
}
+ else if (rep.num_encodings != 0) {
+ status = XvBadReply;
+ goto out;
+ }
/* GET ENCODINGS */