summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-27 16:31:54 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2007-07-27 16:31:54 +0000
commit6611c0b4c9bd6e8699a322c35529342568f3b503 (patch)
treeee738c23b6ffcb78c64836ef66fe57e4a896f1fd
parent794f8e976b974de0c7fb90a421d8b191c7ee5b61 (diff)
Replace a return of -1 with ENOMEM.
Originally committed as revision 9813 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/atrac3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c
index 0e6d184259..ab54c5708a 100644
--- a/libavcodec/atrac3.c
+++ b/libavcodec/atrac3.c
@@ -1007,7 +1007,7 @@ static int atrac3_decode_init(AVCodecContext *avctx)
/* Pad the data buffer with FF_INPUT_BUFFER_PADDING_SIZE,
* this is for the bitstream reader. */
if ((q->decoded_bytes_buffer = av_mallocz((avctx->block_align+(4-avctx->block_align%4) + FF_INPUT_BUFFER_PADDING_SIZE))) == NULL)
- return -1;
+ return AVERROR(ENOMEM);
/* Initialize the VLC tables. */