mirror of https://github.com/mpv-player/mpv
av_sub: Fix memory leak for subtitles decoded by libavcodec
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31690 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5deeba5f6a
commit
747a30b81b
4
av_sub.c
4
av_sub.c
|
@ -97,7 +97,9 @@ int decode_avsub(struct sh_sub *sh, uint8_t **data, int *size, double *pts, doub
|
|||
break;
|
||||
}
|
||||
}
|
||||
#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 82, 0)
|
||||
if (got_sub)
|
||||
; // TODO: free sub once there is a free function...
|
||||
avsubtitle_free(&sub);
|
||||
#endif
|
||||
return new_type;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue