diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-31 14:06:12 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-31 14:17:46 +0200 |
commit | dd200c56c07bbda5212f2a598c7acd58ab402843 (patch) | |
tree | bbd38665721de168781840d3613bf6a8534cea7f /libavcodec/dvdsubdec.c | |
parent | ceff29b9ad611ae5c357a068eee047912bb9e8ff (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.c | 1 |
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; |