diff options
author | Marton Balint <cus@passwd.hu> | 2013-08-04 18:49:02 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2013-08-09 00:16:13 +0200 |
commit | 608989f6bf8ed53fcfef45f49465326d634040a5 (patch) | |
tree | 573f52093088e90460e78a2be5a3e601677a1bc5 | |
parent | 9f120e034fbec41837e1fc04d4cc4bfb198695e3 (diff) | |
download | ffmpeg-608989f6bf8ed53fcfef45f49465326d634040a5.tar.gz |
ffplay: fix memleak of non-bitmap subtitles
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | ffplay.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2048,6 +2048,8 @@ static int subtitle_thread(void *arg) SDL_LockMutex(is->subpq_mutex); is->subpq_size++; SDL_UnlockMutex(is->subpq_mutex); + } else if (got_subtitle) { + avsubtitle_free(&sp->sub); } av_free_packet(pkt); } |