Commit 3b260845 authored by aurel's avatar aurel

allows adding chapters with NULL title

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13247 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4c4d6c60
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment