static int handle_ping(URLContext *s, RTMPPacket *pkt)

{

    RTMPContext *rt = s->priv_data;

    int t, ret;



    if (pkt->data_size < 2) {

        av_log(s, AV_LOG_ERROR, "Too short ping packet (%d)\n",

               pkt->data_size);

        return AVERROR_INVALIDDATA;




    t = AV_RB16(pkt->data);

    if (t == 6) {

        if ((ret = gen_pong(s, rt, pkt)) < 0)












    return 0;

static int handle_ping(URLContext *s, RTMPPacket *pkt)

{

    RTMPContext *rt = s->priv_data;

    int t, ret;



    if (pkt->data_size < 2) {

        av_log(s, AV_LOG_ERROR, "Too short ping packet (%d)\n",

               pkt->data_size);

        return AVERROR_INVALIDDATA;




    t = AV_RB16(pkt->data);

    if (t == 6) {

        if ((ret = gen_pong(s, rt, pkt)) < 0)












    return 0;

static int FUNC_0(URLContext *VAR_0, RTMPPacket *VAR_1)

{

    RTMPContext *rt = VAR_0->priv_data;

    int VAR_2, VAR_3;



    if (VAR_1->data_size < 2) {

        av_log(VAR_0, AV_LOG_ERROR, "Too short ping packet (%d)\n",

               VAR_1->data_size);

        return AVERROR_INVALIDDATA;




    VAR_2 = AV_RB16(VAR_1->data);

    if (VAR_2 == 6) {

        if ((VAR_3 = gen_pong(VAR_0, rt, VAR_1)) < 0)












    return 0;

static int FUNC_0(URLContext *VAR_0, RTMPPacket *VAR_1)
{ RTMPContext *rt = VAR_0->priv_data; int VAR_2, VAR_3; if (VAR_1->data_size < 2) { av_log(VAR_0, AV_LOG_ERROR, "Too short ping packet (%d)\n",
VAR_1->data_size); return AVERROR_INVALIDDATA; VAR_2 = AV_RB16(VAR_1->data); if (VAR_2 == 6) { if ((VAR_3 = gen_pong(VAR_0, rt, VAR_1)) < 0)
return 0;