mirror of
				https://git.ffmpeg.org/ffmpeg.git
				synced 2025-11-04 09:40:56 +00:00 
			
		
		
		
	allows adding chapters with NULL title
Originally committed as revision 13247 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									a28b7ed488
								
							
						
					
					
						commit
						1ba056b689
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue