aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-18 11:41:13 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-20 13:16:23 +0200
commitb0629366a26628f19245ea2c06a6e366cb70f92f (patch)
tree488668607910fb323808a03d7979c65544a6343d /libavformat/avformat.h
parent3bd3e46c918005ab5b0fdfd36911373a6e94df9b (diff)
downloadffmpeg-b0629366a26628f19245ea2c06a6e366cb70f92f.tar.gz
lavf: make cmdutils's check_stream_specifier public.
The new function is called avformat_match_stream_specifier() and does not include logging the error message.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 3bbc68387d..1837733097 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1972,6 +1972,22 @@ const struct AVCodecTag *avformat_get_riff_audio_tags(void);
AVRational av_guess_sample_aspect_ratio(AVFormatContext *format, AVStream *stream, AVFrame *frame);
/**
+ * Check if the stream st contained in s is matched by the stream specifier
+ * spec.
+ *
+ * See the "stream specifiers" chapter in the documentation for the syntax
+ * of spec.
+ *
+ * @return >0 if st is matched by spec;
+ * 0 if st is not matched by spec;
+ * AVERROR code if spec is invalid
+ *
+ * @note A stream specifier can match several streams in the format.
+ */
+int avformat_match_stream_specifier(AVFormatContext *s, AVStream *st,
+ const char *spec);
+
+/**
* @}
*/