Revision 5d91e928 libavdevice/v4l2.c

View differences:

libavdevice/v4l2.c
526 526
    frame_rate = ap->time_base.den;
527 527
    frame_rate_base = ap->time_base.num;
528 528

  
529
    if((unsigned)width > 32767 || (unsigned)height > 32767) {
530
        av_log(s1, AV_LOG_ERROR, "Wrong size (%dx%d)\n", width, height);
531

  
529
    if(avcodec_check_dimensions(s1, ap->width, ap->height) < 0)
532 530
        return -1;
533
    }
534 531

  
535 532
    st = av_new_stream(s1, 0);
536 533
    if (!st) {

Also available in: Unified diff