Revision 2874c81c libavdevice/vfwcap.c

View differences:

libavdevice/vfwcap.c
284 284
    st = av_new_stream(s, 0);
285 285
    if(!st) {
286 286
        vfw_read_close(s);
287
        return AVERROR_NOMEM;
287
        return AVERROR(ENOMEM);
288 288
    }
289 289

  
290 290
    /* Set video format */
......
294 294
    bi = av_malloc(bisize);
295 295
    if(!bi) {
296 296
        vfw_read_close(s);
297
        return AVERROR_NOMEM;
297
        return AVERROR(ENOMEM);
298 298
    }
299 299
    ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
300 300
    if(!ret)

Also available in: Unified diff