avcodec/libzvbi-teletextdec: remove * 1
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Apr 2014 20:38:21 +0000 (22:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 8 Apr 2014 21:12:26 +0000 (23:12 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libzvbi-teletextdec.c

index 32475b1..e65e3fb 100644 (file)
@@ -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;