Merge remote-tracking branch 'qatar/master'
* qatar/master: v410dec: Implement explode mode support zerocodec: fix direct rendering. wav: init st to NULL to avoid a false-positive warning. wavpack: set bits_per_raw_sample for S32 samples to properly identify 24-bit h264: refactor NAL decode loop RTMPTE protocol support RTMPE protocol support rtmp: Add ff_rtmp_calc_digest_pos() rtmp: Rename rtmp_calc_digest to ff_rtmp_calc_digest and make it global swscale: add missing HAVE_INLINE_ASM check. lavfi: place x86 inline assembly under HAVE_INLINE_ASM. vc1: Add a test for interlaced field pictures swscale: Mark all init functions as av_cold swscale: x86: Drop pointless _mmx suffix from filenames lavf: use conditional notation for default codec in muxer declarations. swscale: place inline assembly bilinear scaler under HAVE_INLINE_ASM. dsputil: ppc: cosmetics: pretty-print dsputil: x86: add SHUFFLE_MASK_W macro configure: respect CC_O setting in check_cc Conflicts: Changelog configure libavcodec/v410dec.c libavcodec/zerocodec.c libavformat/asfenc.c libavformat/version.h libswscale/utils.c libswscale/x86/swscale.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
|
||||
#define RTMP_HANDSHAKE_PACKET_SIZE 1536
|
||||
|
||||
#define HMAC_IPAD_VAL 0x36
|
||||
#define HMAC_OPAD_VAL 0x5C
|
||||
|
||||
/**
|
||||
* emulated Flash client version - 9.0.124.2 on Linux
|
||||
* @{
|
||||
@@ -40,4 +43,29 @@
|
||||
#define RTMP_CLIENT_VER4 2
|
||||
/** @} */ //version defines
|
||||
|
||||
/**
|
||||
* Calculate HMAC-SHA2 digest for RTMP handshake packets.
|
||||
*
|
||||
* @param src input buffer
|
||||
* @param len input buffer length (should be 1536)
|
||||
* @param gap offset in buffer where 32 bytes should not be taken into account
|
||||
* when calculating digest (since it will be used to store that digest)
|
||||
* @param key digest key
|
||||
* @param keylen digest key length
|
||||
* @param dst buffer where calculated digest will be stored (32 bytes)
|
||||
*/
|
||||
int ff_rtmp_calc_digest(const uint8_t *src, int len, int gap,
|
||||
const uint8_t *key, int keylen, uint8_t *dst);
|
||||
|
||||
/**
|
||||
* Calculate digest position for RTMP handshake packets.
|
||||
*
|
||||
* @param buf input buffer (should be 1536 bytes)
|
||||
* @param off offset in buffer where to start calculating digest position
|
||||
* @param mod_val value used for computing modulo
|
||||
* @param add_val value added at the end (after computing modulo)
|
||||
*/
|
||||
int ff_rtmp_calc_digest_pos(const uint8_t *buf, int off, int mod_val,
|
||||
int add_val);
|
||||
|
||||
#endif /* AVFORMAT_RTMP_H */
|
||||
|
Reference in New Issue
Block a user