summaryrefslogtreecommitdiff
path: root/libavformat/wv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/wv.c')
-rw-r--r--libavformat/wv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wv.c b/libavformat/wv.c
index ed1eefeea0..b3c7957248 100644
--- a/libavformat/wv.c
+++ b/libavformat/wv.c
@@ -177,7 +177,7 @@ static int wv_read_packet(AVFormatContext *s,
}
if(av_new_packet(pkt, wc->blksize + WV_EXTRA_SIZE) < 0)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
memcpy(pkt->data, wc->extra, WV_EXTRA_SIZE);
ret = get_buffer(&s->pb, pkt->data + WV_EXTRA_SIZE, wc->blksize);
if(ret != wc->blksize){