Commit 1ba056b6 authored by Aurelien Jacobs's avatar Aurelien Jacobs

allows adding chapters with NULL title

Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a28b7ed4
...@@ -2239,6 +2239,7 @@ int ff_new_chapter(AVFormatContext *s, int64_t start, int64_t end, const char *t ...@@ -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)); AVChapter *chapter = av_mallocz(sizeof(AVChapter));
if(!chapter) if(!chapter)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
if (title)
chapter->title = av_strdup(title); chapter->title = av_strdup(title);
chapter->start = start; chapter->start = start;
chapter->end = end; 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