}
dev->vf->omx_index = dev->frame_num;
- vfq_push(&dev->q_ready, dev->vf);
- p->index = 0;
-
if (dev->vf->pts_us64) {
dev->first_frame = 1;
pts_us64 = dev->vf->pts_us64;
} else {
pts_us64 = dev->last_pts_us64
+ (DUR2PTS(dev->vf->duration))*100/9;
+ dev->vf->pts = pts_us64*9/100;
+ AMLVIDEO_WARN("pts= %d, dev->vf->duration= %d\n",
+ dev->vf->pts, (DUR2PTS(dev->vf->duration)));
}
+
+ vfq_push(&dev->q_ready, dev->vf);
+ p->index = 0;
+
p->timestamp.tv_sec = pts_us64 >> 32;
p->timestamp.tv_usec = pts_us64 & 0xFFFFFFFF;
dev->last_pts_us64 = pts_us64;