diff options
author | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:21:30 +0000 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2007-07-19 15:21:30 +0000 |
commit | 769e10f0684c63aefb6fe36788f3e543312e185d (patch) | |
tree | 799f31ac135324ead6c0c21e39f12e7673012dd4 /libavformat/dxa.c | |
parent | 390d5a7cad1265cf926a682dffb850685f36b775 (diff) | |
download | ffmpeg-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/dxa.c')
-rw-r--r-- | libavformat/dxa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dxa.c b/libavformat/dxa.c index 81dbd2e713..0acf1b81dd 100644 --- a/libavformat/dxa.c +++ b/libavformat/dxa.c @@ -160,7 +160,7 @@ static int dxa_read_packet(AVFormatContext *s, AVPacket *pkt) switch(AV_RL32(buf)){ case MKTAG('N', 'U', 'L', 'L'): if(av_new_packet(pkt, 4 + pal_size) < 0) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); pkt->stream_index = 0; if(pal_size) memcpy(pkt->data, pal, pal_size); memcpy(pkt->data + pal_size, buf, 4); @@ -181,7 +181,7 @@ static int dxa_read_packet(AVFormatContext *s, AVPacket *pkt) return -1; } if(av_new_packet(pkt, size + DXA_EXTRA_SIZE + pal_size) < 0) - return AVERROR_NOMEM; + return AVERROR(ENOMEM); memcpy(pkt->data + pal_size, buf, DXA_EXTRA_SIZE); ret = get_buffer(&s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size); if(ret != size){ |