diff gif.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
line wrap: on
line diff
--- a/gif.c	Fri Apr 02 16:26:10 2010 +0000
+++ b/gif.c	Sat Apr 03 14:15:00 2010 +0000
@@ -133,10 +133,10 @@
     avctx->coded_frame = &s->picture;
     s->lzw = av_mallocz(ff_lzw_encode_state_size);
     if (!s->lzw)
-        return AVERROR_NOMEM;
+        return AVERROR(ENOMEM);
     s->buf = av_malloc(avctx->width*avctx->height*2);
     if (!s->buf)
-         return AVERROR_NOMEM;
+         return AVERROR(ENOMEM);
     return 0;
 }