Logo Search packages:      
Sourcecode: blender version File versions  Download package

static int av_interleave_packet ( AVFormatContext *  s,
AVPacket *  out,
AVPacket *  in,
int  flush 
) [static]

Interleaves a AVPacket correctly so it can be muxed.

Parameters:
out the interleaved packet will be output here
in the input packet
flush 1 if no further packets are available as input and all remaining packets should be output
Returns:
1 if a packet was output, 0 if no packet could be output, < 0 if an error occured

Definition at line 2488 of file utils.c.

References av_interleave_packet_per_dts().

Referenced by av_interleaved_write_frame(), and av_write_trailer().

                                                                                           {
    if(s->oformat->interleave_packet)
        return s->oformat->interleave_packet(s, out, in, flush);
    else
        return av_interleave_packet_per_dts(s, out, in, flush);
}


Generated by  Doxygen 1.6.0   Back to index