Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-31 16:06:12 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-07-31 16:17:46 +0400
commitdd200c56c07bbda5212f2a598c7acd58ab402843 (patch)
treebbd38665721de168781840d3613bf6a8534cea7f /libavcodec/dvdsubdec.c
parentceff29b9ad611ae5c357a068eee047912bb9e8ff (diff)
avcodec/dvdsubdec: free subtitle rectangles if nothing is output
Fixes assertion failure Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dvdsubdec.c')
-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;