From 1ba056b689a39e3b51c757deca70cd411ced4c99 Mon Sep 17 00:00:00 2001
From: Aurelien Jacobs <aurel@gnuage.org>
Date: Fri, 23 May 2008 11:45:30 +0000
Subject: [PATCH] allows adding chapters with NULL title

Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/utils.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/utils.c b/libavformat/utils.c
index d98db39632e..9c537f361e5 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;
-- 
GitLab