[FFmpeg-devel] [PATCH] RTMP client support for lavf

Ronald S. Bultje rsbultje
Thu Jul 30 19:06:24 CEST 2009


Hi Kostya,

On Thu, Jul 30, 2009 at 11:56 AM, Kostya<kostya.shishkov at gmail.com> wrote:
+/**
+ * Puts HMAC-SHA2 digest of packet data (except for the bytes where this digest
+ * will be stored) into that packet.
+ */
+static int rtmp_handshake_imprint_with_digest(uint8_t *buf)
[..]
+/**
+ * Verifies that the received server response has the expected digest value.
+ */
+static int rtmp_validate_digest(uint8_t *buf, int off)
[..]
+/**
+ * Performs handshake with the server by means of exchanging pseudorandom data
+ * signed with HMAC-SHA2 digest.
+ */
+static int rtmp_handshake(URLContext *s, RTMPContext *rt)

Please document the meaning of the return values for these functions.

+static int get_packet(URLContext *s, int for_header)

Please document.

(Will look into the actual code also.)

Thanks,
Ronald



More information about the ffmpeg-devel mailing list