diff avformat.h @ 3330:374e74567a4e libavformat

Make ff_new_chapter() return AVChapter instead of int so its consistant with av_new_program() and its simpler to set other fields in AVChapter which arent set by ff_new_chapter().
author michael
date Fri, 23 May 2008 13:14:11 +0000
parents 8426e474011f
children 8bec7ae8f0bb
line wrap: on
line diff
--- a/avformat.h	Fri May 23 13:08:44 2008 +0000
+++ b/avformat.h	Fri May 23 13:14:11 2008 +0000
@@ -764,8 +764,10 @@
  * @param start chapter start time in AV_TIME_BASE units
  * @param end chapter end time in AV_TIME_BASE units
  * @param title chapter title
+ *
+ * @return AVChapter or NULL if error.
  */
-int ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end, const char *title);
+AVChapter *ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end, const char *title);
 
 /**
  * Set the pts for a given stream.