]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libzvbi-teletextdec.c
lavd/qtkit: add device category
[ffmpeg] / libavcodec / libzvbi-teletextdec.c
index 32475b18f8cd94d40268c539ebb500b9cf38466a..e65e3fb55f3a35f88b8d0b4ede711821142d94e8 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;