aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dwt.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-05-22 13:50:23 +0200
committerDiego Biurrun <diego@biurrun.de>2012-05-22 14:01:56 +0200
commitcc7fac9970c61f764cc9ca2a263c11fb1497dd28 (patch)
tree955920662475a227f067453180c9bd2af037faa3 /libavcodec/dwt.c
parentc89e428ed8c2c31396af2d18cab4342b7d82958f (diff)
downloadffmpeg-cc7fac9970c61f764cc9ca2a263c11fb1497dd28.tar.gz
dwt: return errors from ff_slice_buffer_init()
Diffstat (limited to 'libavcodec/dwt.c')
-rw-r--r--libavcodec/dwt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/dwt.c b/libavcodec/dwt.c
index 675644dbe6..d3d4f3b545 100644
--- a/libavcodec/dwt.c
+++ b/libavcodec/dwt.c
@@ -22,9 +22,9 @@
#include "dsputil.h"
#include "dwt.h"
-void ff_slice_buffer_init(slice_buffer *buf, int line_count,
- int max_allocated_lines, int line_width,
- IDWTELEM *base_buffer)
+int ff_slice_buffer_init(slice_buffer *buf, int line_count,
+ int max_allocated_lines, int line_width,
+ IDWTELEM *base_buffer)
{
int i;
@@ -53,6 +53,7 @@ void ff_slice_buffer_init(slice_buffer *buf, int line_count,
}
buf->data_stack_top = max_allocated_lines - 1;
+ return 0;
}
IDWTELEM *ff_slice_buffer_load_line(slice_buffer *buf, int line)