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:
reimar 2010-07-11 07:37:02 +00:00 committed by Uoti Urpala
parent 5deeba5f6a
commit 747a30b81b
1 changed files with 3 additions and 1 deletions

View File

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