aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mm.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:21:30 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-19 15:21:30 +0000
commit769e10f0684c63aefb6fe36788f3e543312e185d (patch)
tree799f31ac135324ead6c0c21e39f12e7673012dd4 /libavformat/mm.c
parent390d5a7cad1265cf926a682dffb850685f36b775 (diff)
downloadffmpeg-769e10f0684c63aefb6fe36788f3e543312e185d.tar.gz
Replace all occurrences of AVERROR_NOMEM with AVERROR(ENOMEM).
Originally committed as revision 9759 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mm.c')
-rw-r--r--libavformat/mm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/mm.c b/libavformat/mm.c
index a2c8a0c10f..366259b807 100644
--- a/libavformat/mm.c
+++ b/libavformat/mm.c
@@ -95,7 +95,7 @@ static int mm_read_header(AVFormatContext *s,
/* video stream */
st = av_new_stream(s, 0);
if (!st)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
st->codec->codec_type = CODEC_TYPE_VIDEO;
st->codec->codec_id = CODEC_ID_MMVIDEO;
st->codec->codec_tag = 0; /* no fourcc */
@@ -108,7 +108,7 @@ static int mm_read_header(AVFormatContext *s,
if (length == MM_HEADER_LEN_AV) {
st = av_new_stream(s, 0);
if (!st)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
st->codec->codec_type = CODEC_TYPE_AUDIO;
st->codec->codec_tag = 0; /* no fourcc */
st->codec->codec_id = CODEC_ID_PCM_U8;
@@ -168,7 +168,7 @@ static int mm_read_packet(AVFormatContext *s,
case MM_TYPE_INTER_HHV :
/* output preamble + data */
if (av_new_packet(pkt, length + MM_PREAMBLE_SIZE))
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
memcpy(pkt->data, preamble, MM_PREAMBLE_SIZE);
if (get_buffer(pb, pkt->data + MM_PREAMBLE_SIZE, length) != length)
return AVERROR_IO;
@@ -179,7 +179,7 @@ static int mm_read_packet(AVFormatContext *s,
case MM_TYPE_AUDIO :
if (av_get_packet(&s->pb, pkt, length)<0)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
pkt->size = length;
pkt->stream_index = 1;
pkt->pts = mm->audio_pts++;