comparison matroskadec.c @ 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 4bf98e198eec
children 7a823a401282
comparison
equal deleted inserted replaced
3329:8426e474011f 3330:374e74567a4e
2255 2255
2256 if (start != AV_NOPTS_VALUE && uid != -1) { 2256 if (start != AV_NOPTS_VALUE && uid != -1) {
2257 start = start * AV_TIME_BASE / 1000000000; 2257 start = start * AV_TIME_BASE / 1000000000;
2258 if (end != AV_NOPTS_VALUE) 2258 if (end != AV_NOPTS_VALUE)
2259 end = end * AV_TIME_BASE / 1000000000; 2259 end = end * AV_TIME_BASE / 1000000000;
2260 res = ff_new_chapter(s, uid, start, end, title); 2260 if(!ff_new_chapter(s, uid, start, end, title))
2261 res= AVERROR(ENOMEM);
2261 } 2262 }
2262 av_free(title); 2263 av_free(title);
2263 break; 2264 break;
2264 2265
2265 default: 2266 default: