diff atrac3.c @ 5407:91906ea3337f libavcodec

Replace a return of -1 with ENOMEM.
author takis
date Fri, 27 Jul 2007 16:31:54 +0000
parents 086291824752
children 2c98d63a8956
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. */