Logo Search packages:      
Sourcecode: blender version File versions

void av_set_pts_info ( AVStream *  s,
int  pts_wrap_bits,
int  pts_num,
int  pts_den 
)

Set the pts for a given stream.

Parameters:
s stream
pts_wrap_bits number of bits effectively used by the pts (used for wrap control, 33 is the value for MPEG)
pts_num numerator to convert to seconds (MPEG: 1)
pts_den denominator to convert to seconds (MPEG: 90000)

Definition at line 3128 of file utils.c.

Referenced by av_new_stream().

{
    s->pts_wrap_bits = pts_wrap_bits;
    s->time_base.num = pts_num;
    s->time_base.den = pts_den;
}


Generated by  Doxygen 1.6.0   Back to index