Revision 9128ae08 libavformat/avformat.h

View differences:

libavformat/avformat.h
22 22
#define AVFORMAT_AVFORMAT_H
23 23

  
24 24
#define LIBAVFORMAT_VERSION_MAJOR 52
25
#define LIBAVFORMAT_VERSION_MINOR 90
25
#define LIBAVFORMAT_VERSION_MINOR 91
26 26
#define LIBAVFORMAT_VERSION_MICRO  0
27 27

  
28 28
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
......
1141 1141
int av_find_stream_info(AVFormatContext *ic);
1142 1142

  
1143 1143
/**
1144
 * Find the "best" stream in the file.
1145
 * The best stream is determined according to various heuristics as the most
1146
 * likely to be what the user expects.
1147
 * If the decoder parameter is non-NULL, av_find_best_stream will find the
1148
 * default decoder for the stream's codec; streams for which no decoder can
1149
 * be found are ignored.
1150
 *
1151
 * @param ic                media file handle
1152
 * @param type              stream type: video, audio, subtitles, etc.
1153
 * @param wanted_stream_nb  user-requested stream number,
1154
 *                          or -1 for automatic selection
1155
 * @param related_stream    try to find a stream related (eg. in the same
1156
 *                          program) to this one, or -1 if none
1157
 * @param decoder_ret       if non-NULL, returns the decoder for the
1158
 *                          selected stream
1159
 * @param flags             flags; none are currently defined
1160
 * @return  the non-negative stream number in case of success,
1161
 *          AVERROR_STREAM_NOT_FOUND if no stream with the requested type
1162
 *          could be found,
1163
 *          AVERROR_DECODER_NOT_FOUND if streams were found but no decoder
1164
 * @note  If av_find_best_stream returns successfully and decoder_ret is not
1165
 *        NULL, then *decoder_ret is guaranteed to be set to a valid AVCodec.
1166
 */
1167
int av_find_best_stream(AVFormatContext *ic,
1168
                        enum AVMediaType type,
1169
                        int wanted_stream_nb,
1170
                        int related_stream,
1171
                        AVCodec **decoder_ret,
1172
                        int flags);
1173

  
1174
/**
1144 1175
 * Read a transport packet from a media file.
1145 1176
 *
1146 1177
 * This function is obsolete and should never be used.

Also available in: Unified diff