Commit dd200c56 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dvdsubdec: free subtitle rectangles if nothing is output

Fixes assertion failure
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ceff29b9
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment