don't crash when loading images > 65kB (fixes #13529)
[swfdec.git] / libswfdec / swfdec_color_matrix_filter.c
blob95959af77134931e7c1e30853c9e654b057970a9
1 /* Swfdec
2 * Copyright (C) 2007 Pekka Lampila <pekka.lampila@iki.fi>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301 USA
20 #ifdef HAVE_CONFIG_H
21 #include "config.h"
22 #endif
24 #include "swfdec_as_internal.h"
25 #include "swfdec_debug.h"
27 SWFDEC_AS_NATIVE (1110, 1, swfdec_color_matrix_filter_get_matrix)
28 void
29 swfdec_color_matrix_filter_get_matrix (SwfdecAsContext *cx,
30 SwfdecAsObject *object, guint argc, SwfdecAsValue *argv,
31 SwfdecAsValue *ret)
33 SWFDEC_STUB ("ColorMatrixFilter.matrix (get)");
36 SWFDEC_AS_NATIVE (1110, 2, swfdec_color_matrix_filter_set_matrix)
37 void
38 swfdec_color_matrix_filter_set_matrix (SwfdecAsContext *cx,
39 SwfdecAsObject *object, guint argc, SwfdecAsValue *argv,
40 SwfdecAsValue *ret)
42 SWFDEC_STUB ("ColorMatrixFilter.matrix (set)");
45 // constructor
46 SWFDEC_AS_NATIVE (1110, 0, swfdec_color_matrix_filter_contruct)
47 void
48 swfdec_color_matrix_filter_contruct (SwfdecAsContext *cx,
49 SwfdecAsObject *object, guint argc, SwfdecAsValue *argv,
50 SwfdecAsValue *ret)
52 SWFDEC_STUB ("ColorMatrixFilter");