提交 cfe9cfed 编写于 作者: M Michael Niedermayer

check x/y validity

a more generic solution is welcome of course ...

Originally committed as revision 7389 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 990c8438
......@@ -2308,11 +2308,19 @@ static void event_loop(void)
void opt_width(const char *arg)
{
screen_width = atoi(arg);
if(screen_width<=0){
fprintf(stderr, "invalid width\n");
exit(1);
}
}
void opt_height(const char *arg)
{
screen_height = atoi(arg);
if(screen_height<=0){
fprintf(stderr, "invalid height\n");
exit(1);
}
}
static void opt_format(const char *arg)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册