mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
ceff29b9ad
commit
dd200c56c0
|
@ -540,6 +540,7 @@ static int dvdsub_decode(AVCodecContext *avctx,
|
||||||
|
|
||||||
if (is_menu < 0) {
|
if (is_menu < 0) {
|
||||||
no_subtitle:
|
no_subtitle:
|
||||||
|
reset_rects(sub);
|
||||||
*data_size = 0;
|
*data_size = 0;
|
||||||
|
|
||||||
return buf_size;
|
return buf_size;
|
||||||
|
|
Loading…
Reference in New Issue