[FFmpeg-devel] [PATCH] api-h264-slice-test: fix arguments and help

Rafaël Carré funman at videolan.org
Thu Jan 10 13:12:35 EET 2019


This program only takes 2 arguments
Remove comment that was never right
---
 tests/api/api-h264-slice-test.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/api/api-h264-slice-test.c
b/tests/api/api-h264-slice-test.c
index b893737bca..dee93b8349 100644
--- a/tests/api/api-h264-slice-test.c
+++ b/tests/api/api-h264-slice-test.c
@@ -22,8 +22,6 @@

 #define MAX_SLICES 8

-// ./fate 2 ./crew_cif out.y4m
-
 #include "config.h"

 #include <stdbool.h>
@@ -121,8 +119,8 @@ int main(int argc, char **argv)
     int nals = 0, ret = 0;
     char *p;

-    if (argc < 4) {
-        fprintf(stderr, "Usage: %s <threads> <input file> <output
file>\n", argv[0]);
+    if (argc < 3) {
+        fprintf(stderr, "Usage: %s <threads> <input file>\n", argv[0]);
         return -1;
     }

-- 
2.19.1


More information about the ffmpeg-devel mailing list