Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
11580:baf1f1555e92 | 11581:998691d7f8f5 |
---|---|
131 GIFContext *s = avctx->priv_data; | 131 GIFContext *s = avctx->priv_data; |
132 | 132 |
133 avctx->coded_frame = &s->picture; | 133 avctx->coded_frame = &s->picture; |
134 s->lzw = av_mallocz(ff_lzw_encode_state_size); | 134 s->lzw = av_mallocz(ff_lzw_encode_state_size); |
135 if (!s->lzw) | 135 if (!s->lzw) |
136 return AVERROR_NOMEM; | 136 return AVERROR(ENOMEM); |
137 s->buf = av_malloc(avctx->width*avctx->height*2); | 137 s->buf = av_malloc(avctx->width*avctx->height*2); |
138 if (!s->buf) | 138 if (!s->buf) |
139 return AVERROR_NOMEM; | 139 return AVERROR(ENOMEM); |
140 return 0; | 140 return 0; |
141 } | 141 } |
142 | 142 |
143 /* better than nothing gif encoder */ | 143 /* better than nothing gif encoder */ |
144 static int gif_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data) | 144 static int gif_encode_frame(AVCodecContext *avctx, unsigned char *outbuf, int buf_size, void *data) |