File tree Expand file tree Collapse file tree
Runner/suites/Multimedia/GSTreamer/Video/Video_Encode_Decode Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -170,10 +170,21 @@ while [ $# -gt 0 ]; do
170170 echo " $TESTNAME SKIP" > " $RES_FILE "
171171 exit 0
172172 fi
173- if [ -n " $2 " ] && ! is_u32 " $2 " ; then
174- log_warn " Invalid --framerate '$2 ' (must be numeric)"
175- echo " $TESTNAME SKIP" > " $RES_FILE "
176- exit 0
173+ if [ -n " $2 " ]; then
174+ case " $2 " in
175+ ' ' |* [!0-9]* )
176+ log_warn " Invalid --framerate '$2 ' (must be numeric)"
177+ echo " $TESTNAME SKIP" > " $RES_FILE "
178+ exit 0
179+ ;;
180+ * )
181+ if [ " $2 " -le 0 ] 2> /dev/null; then
182+ log_warn " Framerate must be positive (got '$2 ')"
183+ echo " $TESTNAME SKIP" > " $RES_FILE "
184+ exit 0
185+ fi
186+ ;;
187+ esac
177188 fi
178189 # If empty, keep default; otherwise use provided value
179190 [ -n " $2 " ] && framerate=" $2 "
You can’t perform that action at this time.
0 commit comments