[FFmpeg-cvslog] avcodec/dvdsubdec: free subtitle rectangles if nothing is output
Michael Niedermayer
git at videolan.org
Thu Jul 31 14:18:39 CEST 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul 31 14:06:12 2014 +0200| [dd200c56c07bbda5212f2a598c7acd58ab402843] | committer: Michael Niedermayer
avcodec/dvdsubdec: free subtitle rectangles if nothing is output
Fixes assertion failure
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dd200c56c07bbda5212f2a598c7acd58ab402843
---
libavcodec/dvdsubdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index 39b0e25..2b363d0 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;
More information about the ffmpeg-cvslog
mailing list