static int swf_write_packet(AVFormatContext *s, int stream_index, 

                           const uint8_t *buf, int size, int64_t pts)

{

    AVCodecContext *codec = &s->streams[stream_index]->codec;

    if (codec->codec_type == CODEC_TYPE_AUDIO)

        return swf_write_audio(s, buf, size);

    else

        return swf_write_video(s, codec, buf, size);

}

static int swf_write_packet(AVFormatContext *s, int stream_index, 

                           const uint8_t *buf, int size, int64_t pts)

{

    AVCodecContext *codec = &s->streams[stream_index]->codec;

    if (codec->codec_type == CODEC_TYPE_AUDIO)

        return swf_write_audio(s, buf, size);

    else

        return swf_write_video(s, codec, buf, size);

}

        return swf_write_audio(s, buf, size);
static int FUNC_0(AVFormatContext *VAR_0, int VAR_1, 

                           const uint8_t *VAR_2, int VAR_3, int64_t VAR_4)

{

    AVCodecContext *codec = &VAR_0->streams[VAR_1]->codec;

    if (codec->codec_type == CODEC_TYPE_AUDIO)

        return swf_write_audio(VAR_0, VAR_2, VAR_3);

    else

        return swf_write_video(VAR_0, codec, VAR_2, VAR_3);

}

static int FUNC_0(AVFormatContext *VAR_0, int VAR_1,
const uint8_t *VAR_2, int VAR_3, int64_t VAR_4)
{ AVCodecContext *codec = &VAR_0->streams[VAR_1]->codec; if (codec->codec_type == CODEC_TYPE_AUDIO)
return swf_write_audio(VAR_0, VAR_2, VAR_3); else
return swf_write_video(VAR_0, codec, VAR_2, VAR_3); }