summaryrefslogtreecommitdiff
path: root/libavdevice/vfwcap.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice/vfwcap.c')
-rw-r--r--libavdevice/vfwcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 9f54494c83..47b51456dd 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -284,7 +284,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
st = av_new_stream(s, 0);
if(!st) {
vfw_read_close(s);
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
}
/* Set video format */
@@ -294,7 +294,7 @@ static int vfw_read_header(AVFormatContext *s, AVFormatParameters *ap)
bi = av_malloc(bisize);
if(!bi) {
vfw_read_close(s);
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
}
ret = SendMessage(ctx->hwnd, WM_CAP_GET_VIDEOFORMAT, bisize, (LPARAM) bi);
if(!ret)