aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-31 14:06:12 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-31 14:17:46 +0200
commitdd200c56c07bbda5212f2a598c7acd58ab402843 (patch)
treebbd38665721de168781840d3613bf6a8534cea7f
parentceff29b9ad611ae5c357a068eee047912bb9e8ff (diff)
downloadffmpeg-dd200c56c07bbda5212f2a598c7acd58ab402843.tar.gz
avcodec/dvdsubdec: free subtitle rectangles if nothing is output
Fixes assertion failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/dvdsubdec.c1
1 files changed, 1 insertions, 0 deletions
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;