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
This commit is contained in:
Stefano Sabatini
2010-04-03 14:15:00 +00:00
parent 0e64218889
commit 2874c81cc8
17 changed files with 29 additions and 29 deletions

View File

@ -134,7 +134,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
if (av_new_packet(pkt, data_len)) {
av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
return AVERROR_NOMEM;
return AVERROR(ENOMEM);
}
pkt->stream_index = st->index;
@ -189,7 +189,7 @@ static int xiph_handle_packet(AVFormatContext * ctx,
if (av_new_packet(pkt, frame_size)) {
av_log(ctx, AV_LOG_ERROR, "Out of memory.\n");
return AVERROR_NOMEM;
return AVERROR(ENOMEM);
}
memcpy(pkt->data, xiph_data, frame_size);
@ -272,7 +272,7 @@ parse_packed_headers(const uint8_t * packed_headers,
ptr = codec->extradata = av_malloc(extradata_alloc);
if (!ptr) {
av_log(codec, AV_LOG_ERROR, "Out of memory\n");
return AVERROR_NOMEM;
return AVERROR(ENOMEM);
}
*ptr++ = 2;
ptr += av_xiphlacing(ptr, length1);
@ -331,7 +331,7 @@ static int xiph_parse_fmtp_pair(AVCodecContext * codec,
} else {
av_log(codec, AV_LOG_ERROR,
"Out of memory while decoding SDP configuration.\n");
result = AVERROR_NOMEM;
result = AVERROR(ENOMEM);
}
} else {
av_log(codec, AV_LOG_ERROR, "Packet too large\n");
@ -356,7 +356,7 @@ static int xiph_parse_sdp_line(AVFormatContext *s, int st_index,
if (!(value = av_malloc(value_size))) {
av_log(codec, AV_LOG_ERROR, "Out of memory\n");
return AVERROR_NOMEM;
return AVERROR(ENOMEM);
}
if (av_strstart(line, "fmtp:", &p)) {