avcodec/dvdsubdec: free subtitle rectangles if nothing is output

Fixes assertion failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-07-31 14:06:12 +02:00
parent ceff29b9ad
commit dd200c56c0

View File

@ -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;