diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-11 11:54:32 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-11 11:54:37 +0200 |
commit | 15c92f8c486a91ca2bd8607a088bee2219c34452 (patch) | |
tree | bf238631bc90e87fea4cf9983faadac9bd854317 /libavformat/rtmppkt.h | |
parent | 99091ff217440daa33fddcf66170e1a6d630c3a4 (diff) | |
parent | 5718e3487ba3b26aba341070be0b6b0b4de45ea3 (diff) | |
download | ffmpeg-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.h | 7 |
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 |