[Libva] [PATCH] Avoid reaching div by zero
Lim Siew Hoon
siew.hoon.lim at intel.com
Thu Jan 7 00:37:23 PST 2016
Signed-off-by: Lim Siew Hoon <siew.hoon.lim at intel.com>
---
test/encode/jpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/encode/jpegenc.c b/test/encode/jpegenc.c
index 56fa2f1..b68bb2e 100644
--- a/test/encode/jpegenc.c
+++ b/test/encode/jpegenc.c
@@ -968,7 +968,7 @@ int main(int argc, char *argv[])
default: {
printf("Unsupported format:\n");
show_help();
- break;
+ return -1;
}
}
--
2.1.0
More information about the Libva
mailing list