[FFmpeg-cvslog] ffplay: fix memleak of non-bitmap subtitles
Marton Balint
git at videolan.org
Fri Aug 9 07:03:23 CEST 2013
ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Sun Aug 4 18:49:02 2013 +0200| [608989f6bf8ed53fcfef45f49465326d634040a5] | committer: Marton Balint
ffplay: fix memleak of non-bitmap subtitles
Signed-off-by: Marton Balint <cus at passwd.hu>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=608989f6bf8ed53fcfef45f49465326d634040a5
---
ffplay.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ffplay.c b/ffplay.c
index cfb927e..53fb473 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -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);
}
More information about the ffmpeg-cvslog
mailing list