aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sierravmd.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/sierravmd.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/sierravmd.c')
-rw-r--r--libavformat/sierravmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/sierravmd.c b/libavformat/sierravmd.c
index 15ce40f688..68fc685e48 100644
--- a/libavformat/sierravmd.c
+++ b/libavformat/sierravmd.c
@@ -94,7 +94,7 @@ static int vmd_read_header(AVFormatContext *s,
/* start up the decoders */
vst = av_new_stream(s, 0);
if (!vst)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
av_set_pts_info(vst, 33, 1, 10);
vmd->video_stream_index = vst->index;
vst->codec->codec_type = CODEC_TYPE_VIDEO;
@@ -111,7 +111,7 @@ static int vmd_read_header(AVFormatContext *s,
if (vmd->sample_rate) {
st = av_new_stream(s, 0);
if (!st)
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
vmd->audio_stream_index = st->index;
st->codec->codec_type = CODEC_TYPE_AUDIO;
st->codec->codec_id = CODEC_ID_VMDAUDIO;
@@ -155,7 +155,7 @@ static int vmd_read_header(AVFormatContext *s,
if (!raw_frame_table || !vmd->frame_table) {
av_free(raw_frame_table);
av_free(vmd->frame_table);
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
}
if (get_buffer(pb, raw_frame_table, raw_frame_table_size) !=
raw_frame_table_size) {
@@ -257,7 +257,7 @@ static int vmd_read_packet(AVFormatContext *s,
url_fseek(pb, frame->frame_offset, SEEK_SET);
if (av_new_packet(pkt, frame->frame_size + BYTES_PER_FRAME_RECORD))
- return AVERROR_NOMEM;
+ return AVERROR(ENOMEM);
pkt->pos= url_ftell(pb);
memcpy(pkt->data, frame->frame_record, BYTES_PER_FRAME_RECORD);
ret = get_buffer(pb, pkt->data + BYTES_PER_FRAME_RECORD,