projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a28b7ed
)
allows adding chapters with NULL title
author
Aurelien Jacobs
<aurel@gnuage.org>
Fri, 23 May 2008 11:45:30 +0000
(11:45 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Fri, 23 May 2008 11:45:30 +0000
(11:45 +0000)
Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
d98db39
..
9c537f3
100644
(file)
--- 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;