aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtmppkt.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-11 11:54:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-11 11:54:37 +0200
commit15c92f8c486a91ca2bd8607a088bee2219c34452 (patch)
treebf238631bc90e87fea4cf9983faadac9bd854317 /libavformat/rtmppkt.h
parent99091ff217440daa33fddcf66170e1a6d630c3a4 (diff)
parent5718e3487ba3b26aba341070be0b6b0b4de45ea3 (diff)
downloadffmpeg-15c92f8c486a91ca2bd8607a088bee2219c34452.tar.gz
Merge remote-tracking branch 'qatar/master'
* qatar/master: rtmp: Do not misuse memcmp Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/rtmppkt.h')
-rw-r--r--libavformat/rtmppkt.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/rtmppkt.h b/libavformat/rtmppkt.h
index ee8763be97..9ca6382a17 100644
--- a/libavformat/rtmppkt.h
+++ b/libavformat/rtmppkt.h
@@ -282,6 +282,13 @@ int ff_amf_read_string(GetByteContext *gbc, uint8_t *str,
*/
int ff_amf_read_null(GetByteContext *gbc);
+/**
+ * Match AMF string with a NULL-terminated string.
+ *
+ * @return 0 if the strings do not match.
+ */
+
+int ff_amf_match_string(const uint8_t *data, int size, const char *str);
/** @} */ // AMF funcs