summaryrefslogtreecommitdiff
path: root/libavcodec/libzvbi-teletextdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-04-08 22:38:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-08 23:12:26 +0200
commit8ff061095f155269470e1b969a5eb8f6cb2007a7 (patch)
tree179587bebf9d85a908520dd043c94f7627fc0fb8 /libavcodec/libzvbi-teletextdec.c
parent818aaa76363c7463293aa1370b77cba67adbeac2 (diff)
avcodec/libzvbi-teletextdec: remove * 1
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/libzvbi-teletextdec.c')
-rw-r--r--libavcodec/libzvbi-teletextdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libzvbi-teletextdec.c b/libavcodec/libzvbi-teletextdec.c
index 32475b18f8..e65e3fb55f 100644
--- a/libavcodec/libzvbi-teletextdec.c
+++ b/libavcodec/libzvbi-teletextdec.c
@@ -457,7 +457,7 @@ static int teletext_decode_frame(AVCodecContext *avctx, void *data, int *data_si
sub->pts = ctx->pages->pts;
if (ctx->pages->sub_rect->type != SUBTITLE_NONE) {
- sub->rects = av_malloc(sizeof(*sub->rects) * 1);
+ sub->rects = av_malloc(sizeof(*sub->rects));
if (sub->rects) {
sub->num_rects = 1;
sub->rects[0] = ctx->pages->sub_rect;