From dd200c56c07bbda5212f2a598c7acd58ab402843 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 31 Jul 2014 14:06:12 +0200 Subject: [PATCH] avcodec/dvdsubdec: free subtitle rectangles if nothing is output Fixes assertion failure Signed-off-by: Michael Niedermayer --- libavcodec/dvdsubdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c index 39b0e25a13..2b363d02d9 100644 --- a/libavcodec/dvdsubdec.c +++ b/libavcodec/dvdsubdec.c @@ -540,6 +540,7 @@ static int dvdsub_decode(AVCodecContext *avctx, if (is_menu < 0) { no_subtitle: + reset_rects(sub); *data_size = 0; return buf_size;