diff options
author | Lim Siew Hoon <siew.hoon.lim@intel.com> | 2016-01-07 16:37:23 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-01-29 13:59:16 +0800 |
commit | 98e84c2251adb17c817eb96c95da8cc2b60a5329 (patch) | |
tree | 9a2b75af1f1d3cd75cf751a1d7f0828087dfc2d3 | |
parent | a8e0430158580728cc2a5e4e781d1170d134bb40 (diff) | |
download | libva-98e84c2251adb17c817eb96c95da8cc2b60a5329.tar.gz |
Avoid reaching div by zero
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
(cherry picked from commit cb418f6ef36b6e6f0d632bf7c0aaf035a271400b)
-rw-r--r-- | test/encode/jpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |