mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
check x/y validity
a more generic solution is welcome of course ... Originally committed as revision 7389 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
990c84384f
commit
cfe9cfede8
1 changed files with 8 additions and 0 deletions
8
ffplay.c
8
ffplay.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue