changeset 5407:91906ea3337f libavcodec

Replace a return of -1 with ENOMEM.
author takis
date Fri, 27 Jul 2007 16:31:54 +0000
parents 9d95fa2bd150
children 20bea6a9950c
files atrac3.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/atrac3.c	Fri Jul 27 11:37:56 2007 +0000
+++ b/atrac3.c	Fri Jul 27 16:31:54 2007 +0000
@@ -1007,7 +1007,7 @@
     /* 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. */