[FFmpeg-cvslog] ffmpeg: free last sub when using -fix_sub_duration.
Nicolas George
git at videolan.org
Wed Feb 27 19:01:05 CET 2013
ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Wed Feb 6 15:00:38 2013 +0100| [f102c24d9040b94eb8a561fbd40f0e61b808703e] | committer: Nicolas George
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.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f102c24d9040b94eb8a561fbd40f0e61b808703e
---
ffmpeg.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index af93880..65f252b 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]);
More information about the ffmpeg-cvslog
mailing list