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/matroskadec.c | |
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/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 7f9352e46c..7cbf7054f1 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2257,7 +2257,8 @@ matroska_parse_chapters(AVFormatContext *s) start = start * AV_TIME_BASE / 1000000000; if (end != AV_NOPTS_VALUE) end = end * AV_TIME_BASE / 1000000000; - res = ff_new_chapter(s, uid, start, end, title); + if(!ff_new_chapter(s, uid, start, end, title)) + res= AVERROR(ENOMEM); } av_free(title); break; |