static int prepare_packet(AVPacket *pkt,const FailingMuxerPacketData *pkt_data, int64_t pts)

{

    int ret;

    FailingMuxerPacketData *data = av_malloc(sizeof(*data));




    memcpy(data, pkt_data, sizeof(FailingMuxerPacketData));

    ret = av_packet_from_data(pkt, (uint8_t*) data, sizeof(*data));



    pkt->pts = pkt->dts = pts;

    pkt->duration = 1;



    return ret;

static int prepare_packet(AVPacket *pkt,const FailingMuxerPacketData *pkt_data, int64_t pts)

{

    int ret;

    FailingMuxerPacketData *data = av_malloc(sizeof(*data));




    memcpy(data, pkt_data, sizeof(FailingMuxerPacketData));

    ret = av_packet_from_data(pkt, (uint8_t*) data, sizeof(*data));



    pkt->pts = pkt->dts = pts;

    pkt->duration = 1;



    return ret;

static int FUNC_0(AVPacket *VAR_0,const FailingMuxerPacketData *VAR_1, int64_t VAR_2)

{

    int VAR_3;

    FailingMuxerPacketData *data = av_malloc(sizeof(*data));




    memcpy(data, VAR_1, sizeof(FailingMuxerPacketData));

    VAR_3 = av_packet_from_data(VAR_0, (uint8_t*) data, sizeof(*data));



    VAR_0->VAR_2 = VAR_0->dts = VAR_2;

    VAR_0->duration = 1;



    return VAR_3;

static int FUNC_0(AVPacket *VAR_0,const FailingMuxerPacketData *VAR_1, int64_t VAR_2)
{ int VAR_3; FailingMuxerPacketData *data = av_malloc(sizeof(*data)); memcpy(data, VAR_1, sizeof(FailingMuxerPacketData)); VAR_3 = av_packet_from_data(VAR_0, (uint8_t*) data, sizeof(*data)); VAR_0->VAR_2 = VAR_0->dts = VAR_2; VAR_0->duration = 1; return VAR_3;