[FFmpeg-devel] [PATCH 1/4] ffplay: free subtitle pictures on exit

Marton Balint cus at passwd.hu
Sun Aug 4 23:55:36 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 d462eee..cfb927e 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1018,6 +1018,8 @@ static void stream_close(VideoState *is)
             vp->bmp = NULL;
         }
     }
+    for (i = 0; i < SUBPICTURE_QUEUE_SIZE; i++)
+        free_subpicture(&is->subpq[i]);
     SDL_DestroyMutex(is->pictq_mutex);
     SDL_DestroyCond(is->pictq_cond);
     SDL_DestroyMutex(is->subpq_mutex);
-- 
1.8.1.4



More information about the ffmpeg-devel mailing list