Revision 3940caad libavformat/avformat.h

View differences:

libavformat/avformat.h
1039 1039
AVInputFormat *av_probe_input_format2(AVProbeData *pd, int is_opened, int *score_max);
1040 1040

  
1041 1041
/**
1042
 * Probe a bytestream to determine the input format. Each time a probe returns
1043
 * with a score that is too low, the probe buffer size is increased and another
1044
 * attempt is made. When the maximum probe size is reached, the input format
1045
 * with the highest score is returned.
1046
 *
1047
 * @param pb the bytestream to probe
1048
 * @param fmt the input format is put here
1049
 * @param filename the filename of the stream
1050
 * @param logctx the log context
1051
 * @param offset the offset within the bytestream to probe from
1052
 * @param max_probe_size the maximum probe buffer size (zero for default)
1053
 * @return 0 in case of success, a negative value corresponding to an
1054
 * AVERROR code otherwise
1055
 */
1056
int av_probe_input_buffer(ByteIOContext *pb, AVInputFormat **fmt,
1057
                          const char *filename, void *logctx,
1058
                          unsigned int offset, unsigned int max_probe_size);
1059

  
1060
/**
1042 1061
 * Allocate all the structures needed to read an input stream.
1043 1062
 *        This does not open the needed codecs for decoding the stream[s].
1044 1063
 */

Also available in: Unified diff