diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-12-31 18:09:21 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-12-31 18:09:21 +0000 |
commit | cfe9cfede815dc8212b7be637d7253e5ff8a40ed (patch) | |
tree | 2c46d74e0f1d5507a1a99c02995ae15aceab3fe1 /ffplay.c | |
parent | 990c84384fe6de769300cb999f36525f9fccd1d9 (diff) | |
download | ffmpeg-cfe9cfede815dc8212b7be637d7253e5ff8a40ed.tar.gz |
check x/y validity
a more generic solution is welcome of course ...
Originally committed as revision 7389 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffplay.c')
-rw-r--r-- | ffplay.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |