diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2013-08-08 19:44:19 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2013-08-11 01:19:27 +0200 |
commit | 5718e3487ba3b26aba341070be0b6b0b4de45ea3 (patch) | |
tree | 7039d67a396bcfc5f8e85ce7c2acca3032c7b7e5 /libavformat/rtmppkt.h | |
parent | 205a4502d3da9de2db75d2c965c9d065574e9266 (diff) | |
download | ffmpeg-5718e3487ba3b26aba341070be0b6b0b4de45ea3.tar.gz |
rtmp: Do not misuse memcmp
CC: libav-stable@libav.org
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 a45beda76d..ff5d1716df 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 |