changeset 3317:841f0bc7857c libavformat

allows adding chapters with NULL title
author aurel
date Fri, 23 May 2008 11:45:30 +0000
parents 842a6746532e
children f63630e08b59
files utils.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Thu May 22 23:04:02 2008 +0000
+++ b/utils.c	Fri May 23 11:45:30 2008 +0000
@@ -2239,6 +2239,7 @@
     AVChapter *chapter = av_mallocz(sizeof(AVChapter));
     if(!chapter)
         return AVERROR(ENOMEM);
+    if (title)
     chapter->title = av_strdup(title);
     chapter->start = start;
     chapter->end = end;