[SCM] libav/experimental: allows adding chapters with NULL title
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:21:02 UTC 2013
The following commit has been merged in the experimental branch:
commit 1ba056b689a39e3b51c757deca70cd411ced4c99
Author: Aurelien Jacobs <aurel at gnuage.org>
Date: Fri May 23 11:45:30 2008 +0000
allows adding chapters with NULL title
Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/utils.c b/libavformat/utils.c
index d98db39..9c537f3 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -2239,6 +2239,7 @@ int ff_new_chapter(AVFormatContext *s, int64_t start, int64_t end, const char *t
AVChapter *chapter = av_mallocz(sizeof(AVChapter));
if(!chapter)
return AVERROR(ENOMEM);
+ if (title)
chapter->title = av_strdup(title);
chapter->start = start;
chapter->end = end;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list