# HG changeset patch # User aurel # Date 1211543130 0 # Node ID 841f0bc7857c91ada9e3f5a4a4698ab22a71547c # Parent 842a6746532e4b205fb6c0902c375f8d0bdbdeb3 allows adding chapters with NULL title diff -r 842a6746532e -r 841f0bc7857c utils.c --- 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;