factorize av_set_pts_info