diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-05-23 11:45:30 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-05-23 11:45:30 +0000 |
commit | 1ba056b689a39e3b51c757deca70cd411ced4c99 (patch) | |
tree | 4eea1bba8d95555f9152ccb9f0296f3df9213072 | |
parent | a28b7ed48870a643d210a4a5cc951a60486665db (diff) | |
download | ffmpeg-1ba056b689a39e3b51c757deca70cd411ced4c99.tar.gz |
allows adding chapters with NULL title
Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index d98db39632..9c537f361e 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; |