diff flacenc.c @ 11581:998691d7f8f5 libavcodec

Replace all remaining occurrences of AVERROR_NOMEM with AVERROR(ENOMEM). AVERROR_NOMEM is deprecated and will be dropped at the next libavutil major bump.
author stefano
date Sat, 03 Apr 2010 14:15:00 +0000
parents 8a4984c5cacc
children 0a36d4b2144b
line wrap: on
line diff
--- a/flacenc.c	Fri Apr 02 16:26:10 2010 +0000
+++ b/flacenc.c	Sat Apr 03 14:15:00 2010 +0000
@@ -352,7 +352,7 @@
     /* initialize MD5 context */
     s->md5ctx = av_malloc(av_md5_size);
     if(!s->md5ctx)
-        return AVERROR_NOMEM;
+        return AVERROR(ENOMEM);
     av_md5_init(s->md5ctx);
 
     streaminfo = av_malloc(FLAC_STREAMINFO_SIZE);