comparison avcodec.h @ 9034:96731d42ca82 libavcodec

Change duration computation to use time_base instead of TB/2. Patch by Ivan Schreter, schreter gmx net
author cehoyos
date Tue, 24 Feb 2009 20:17:02 +0000
parents 15a3df8c01fd
children d4c12f2d226b
comparison
equal deleted inserted replaced
9033:bcf716c58be4 9034:96731d42ca82
3096 /** 3096 /**
3097 * This field is used for proper frame duration computation in lavf. 3097 * This field is used for proper frame duration computation in lavf.
3098 * It signals, how much longer the frame duration of the current frame 3098 * It signals, how much longer the frame duration of the current frame
3099 * is compared to normal frame duration. 3099 * is compared to normal frame duration.
3100 * 3100 *
3101 * frame_duration = (2 + repeat_pict) / (2*fps) 3101 * frame_duration = (1 + repeat_pict) * time_base
3102 * 3102 *
3103 * It is used by codecs like H.264 to display telecined material. 3103 * It is used by codecs like H.264 to display telecined material.
3104 *
3105 * @note This field can also be set to -1 for half-frame duration in case
3106 * of field pictures.
3107 */ 3104 */
3108 int repeat_pict; /* XXX: Put it back in AVCodecContext. */ 3105 int repeat_pict; /* XXX: Put it back in AVCodecContext. */
3109 int64_t pts; /* pts of the current frame */ 3106 int64_t pts; /* pts of the current frame */
3110 int64_t dts; /* dts of the current frame */ 3107 int64_t dts; /* dts of the current frame */
3111 3108