summaryrefslogtreecommitdiff
path: root/libavcodec/pgssubdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/pgssubdec.c')
-rw-r--r--libavcodec/pgssubdec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/pgssubdec.c b/libavcodec/pgssubdec.c
index b7832f20ba..275f45a3b5 100644
--- a/libavcodec/pgssubdec.c
+++ b/libavcodec/pgssubdec.c
@@ -348,9 +348,9 @@ static int display_end_segment(AVCodecContext *avctx, void *data,
sub->end_display_time = 20000;
sub->format = 0;
- sub->rects = av_mallocz(sizeof(*sub->rects));
- sub->rects[0] = av_mallocz(sizeof(*sub->rects[0]));
- sub->num_rects = 1;
+ sub->rects = av_mallocz(sizeof(*sub->rects));
+ sub->rects[0] = av_mallocz(sizeof(*sub->rects[0]));
+ sub->num_rects = 1;
sub->rects[0]->x = ctx->presentation.x;
sub->rects[0]->y = ctx->presentation.y;