summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-03 14:15:00 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-04-03 14:15:00 +0000
commit2874c81cc80b7f1005073748e8f1877055bf97a7 (patch)
tree4b7f74a856abd49bb61e10caab57c0ffc46667a9 /libavdevice
parent0e642188896c564869bd6446a70e6969b229947d (diff)
Replace all remaining occurrences of AVERROR_NOMEM with
AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump. Originally committed as revision 22791 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-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)