Revision 5d91e928 libavdevice/v4l.c

View differences:

libavdevice/v4l.c
84 84
    }
85 85
    s->time_base = ap->time_base;
86 86

  
87
    if((unsigned)ap->width > 32767 || (unsigned)ap->height > 32767) {
88
        av_log(s1, AV_LOG_ERROR, "Capture size is out of range: %dx%d\n",
89
            ap->width, ap->height);
90
        return -1;
91
    }
92 87
    s->video_win.width = ap->width;
93 88
    s->video_win.height = ap->height;
94 89

  
......
121 116
        }
122 117
    }
123 118

  
119
    if(avcodec_check_dimensions(s1, s->video_win.width, s->video_win.height) < 0)
120
        return -1;
121

  
124 122
    desired_palette = -1;
125 123
    desired_depth = -1;
126 124
    for (j = 0; j < vformat_num; j++) {

Also available in: Unified diff