Revision e78d651f

View differences:

libavdevice/v4l.c
78 78
    int j;
79 79
    int vformat_num = sizeof(video_formats) / sizeof(video_formats[0]);
80 80

  
81
    if (ap->width <= 0 || ap->height <= 0 || ap->time_base.den <= 0) {
82
        av_log(s1, AV_LOG_ERROR, "Bad capture size (%dx%d) or wrong time base (%d)\n",
83
            ap->width, ap->height, ap->time_base.den);
84

  
81
    if (ap->width <= 0 || ap->height <= 0) {
82
        av_log(s1, AV_LOG_ERROR, "Wrong size (%dx%d)\n", ap->width, ap->height);
83
        return -1;
84
    }
85
    if (ap->time_base.den <= 0) {
86
        av_log(s1, AV_LOG_ERROR, "Wrong time base (%d)\n", ap->time_base.den);
85 87
        return -1;
86 88
    }
87 89

  

Also available in: Unified diff