Browse Source

avcodec/dvdsubdec: free subtitle rectangles if nothing is output

Fixes assertion failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Michael Niedermayer 11 years ago
parent
commit
dd200c56c0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/dvdsubdec.c

+ 1
- 0
libavcodec/dvdsubdec.c 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;


Loading…
Cancel
Save