/*
* Linux video grab interface
- * Copyright (c) 2000,2001 Fabrice Bellard.
+ * Copyright (c) 2000,2001 Fabrice Bellard
*
* This file is part of FFmpeg.
*
}
s->time_base = ap->time_base;
- if((unsigned)ap->width > 32767 || (unsigned)ap->height > 32767) {
- av_log(s1, AV_LOG_ERROR, "Capture size is out of range: %dx%d\n",
- ap->width, ap->height);
- return -1;
- }
s->video_win.width = ap->width;
s->video_win.height = ap->height;
}
}
+ if(avcodec_check_dimensions(s1, s->video_win.width, s->video_win.height) < 0)
+ return -1;
+
desired_palette = -1;
desired_depth = -1;
for (j = 0; j < vformat_num; j++) {