av_set_pts_info(c->vst, 64, sys->frame_rate_base, sys->frame_rate);
static int dv_extract_video_info(DVDemuxContext *c, uint8_t* frame){    const DVprofile* sys;     const uint8_t* vsc_pack;    AVCodecContext* avctx;    int apt, is16_9;    int size = 0;        sys = dv_frame_profile(frame);    if (sys) {        avctx = &c->vst->codec;		avctx->frame_rate = sys->frame_rate;        avctx->frame_rate_base = sys->frame_rate_base;        avctx->width = sys->width;        avctx->height = sys->height;        avctx->pix_fmt = sys->pix_fmt;        	/* finding out SAR is a little bit messy */	vsc_pack = dv_extract_pack(frame, dv_video_control);        apt = frame[4] & 0x07;	is16_9 = (vsc_pack && ((vsc_pack[2] & 0x07) == 0x02 ||	                       (!apt && (vsc_pack[2] & 0x07) == 0x07)));	avctx->sample_aspect_ratio = sys->sar[is16_9];		size = sys->frame_size;    }    return size;}