[FFmpeg-devel] [PATCH 2/4] ffplay: fix memleak of non-bitmap subtitles

Marton Balint cus at passwd.hu
Sun Aug 4 23:55:37 CEST 2013


Signed-off-by: Marton Balint <cus at passwd.hu>
---
 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);
     }
-- 
1.8.1.4



More information about the ffmpeg-devel mailing list