diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-23 13:14:11 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-23 13:14:11 +0000 |
commit | 5c37f43a0d2131f292853f0d184acf4ec8dfb99f (patch) | |
tree | 5ebc16eff5aa639d79f36e875983b8d83c28b2e4 /libavformat/avformat.h | |
parent | fbabf1e94405ba81eaa5f2a1f840920f47caed0c (diff) | |
download | ffmpeg-5c37f43a0d2131f292853f0d184acf4ec8dfb99f.tar.gz |
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().
Originally committed as revision 13262 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 4888105319..03902d035c 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -764,8 +764,10 @@ AVProgram *av_new_program(AVFormatContext *s, int id); * @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. |