aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2013-02-06 15:00:38 +0100
committerNicolas George <nicolas.george@normalesup.org>2013-02-27 18:57:33 +0100
commitf102c24d9040b94eb8a561fbd40f0e61b808703e (patch)
treee3c00e161f107267f5dcfeb9da3d1aa8e9898692
parent1fd04cac001fea37a4b883bd2023ebc617f81288 (diff)
downloadffmpeg-f102c24d9040b94eb8a561fbd40f0e61b808703e.tar.gz
ffmpeg: free last sub when using -fix_sub_duration.
Fix trac ticket #2242. Note: under valid circumstances, when using -fix_sub_duration, the last subtitle is a dummy termination packet, with no allocated memory.
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index af93880ed8..65f252bdf3 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -459,6 +459,7 @@ static void exit_program(void)
avcodec_free_frame(&input_streams[i]->decoded_frame);
av_dict_free(&input_streams[i]->opts);
free_buffer_pool(&input_streams[i]->buffer_pool);
+ avsubtitle_free(&input_streams[i]->prev_sub.subtitle);
avfilter_unref_bufferp(&input_streams[i]->sub2video.ref);
av_freep(&input_streams[i]->filters);
av_freep(&input_streams[i]);