Revision 19711af5 libavformat/avformat.h

View differences:

libavformat/avformat.h
1249 1249
AVProgram *av_new_program(AVFormatContext *s, int id);
1250 1250

  
1251 1251
/**
1252
 * Add a new chapter.
1253
 * This function is NOT part of the public API
1254
 * and should ONLY be used by demuxers.
1255
 *
1256
 * @param s media file handle
1257
 * @param id unique ID for this chapter
1258
 * @param start chapter start time in time_base units
1259
 * @param end chapter end time in time_base units
1260
 * @param title chapter title
1261
 *
1262
 * @return AVChapter or NULL on error
1263
 */
1264
AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base,
1265
                          int64_t start, int64_t end, const char *title);
1266

  
1267
/**
1268 1252
 * Set the pts for a given stream. If the new values would be invalid
1269 1253
 * (<= 0), it leaves the AVStream unchanged.
1270 1254
 *
......
1295 1279
int av_index_search_timestamp(AVStream *st, int64_t timestamp, int flags);
1296 1280

  
1297 1281
/**
1298
 * Ensure the index uses less memory than the maximum specified in
1299
 * AVFormatContext.max_index_size by discarding entries if it grows
1300
 * too large.
1301
 * This function is not part of the public API and should only be called
1302
 * by demuxers.
1303
 */
1304
void ff_reduce_index(AVFormatContext *s, int stream_index);
1305

  
1306
/**
1307 1282
 * Add an index entry into a sorted list. Update the entry if the list
1308 1283
 * already contains it.
1309 1284
 *

Also available in: Unified diff